Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1076
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: Tue May 14 16:58:55 CEST 2024

Total time taken to generate the page: 0.01619 seconds