U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Creating a hyperlink label
Re: Creating a hyperlink label [message #41233 is a reply to message #41232] Sun, 17 November 2013 12:35 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1117
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Crydev,

You should definitly override "CursorImage" method:
class MyLinkCtrl : public Ctrl {
public:
   virtual Image CursorImage(Point p, dowrd keyflags) {
      bool isLink = true;
      // Here you can write hyperlink detection code if you want to.
      if (isLink)
          return Image::Hand();
      else
          return Image::Arrow();
   }
}


Sincerely,
Klugier


U++ - one framework to rule them all.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using a Button to load a window/form using Run. THISBACK syntax
Next Topic: Win32: custom WM_XXXXX message processing
Goto Forum:
  


Current Time: Sun Apr 26 21:40:32 GMT+2 2026

Total time taken to generate the page: 0.00532 seconds