Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Creating a hyperlink label
Re: Creating a hyperlink label [message #41232 is a reply to message #41218] |
Sun, 17 November 2013 12:05 |
crydev
Messages: 151 Registered: October 2012 Location: Netherlands
|
Experienced Member |
|
|
Thanks Klugier,
I now solved that problem the following way, allowing me to set the LaunchWebBrowser call as WhenLeftDown callback:
// Represents a label that is clickable, for example, to execute a hyperlink.
class HyperlinkLabel : public ParentCtrl
{
private:
Label mLinkLabel;
virtual void LeftDown(Point p, dword keyflags) { this->WhenLeftDown(); }
public:
Callback WhenLeftDown;
HyperlinkLabel() { *this << this->mLinkLabel.SizePos(); }
HyperlinkLabel& SetLabel(const char* lbl) { this->mLinkLabel.SetLabel(lbl); return *this; }
};
This works, but one question remains. I have already tried a few things, for example, overriding MouseEvent, and using a RectTracker, but none really seemed to work for me. I would like to change the cursor to a hand while the mouse is on top of the control.
Thanks in advance!
|
|
|
|
|
Creating a hyperlink label
By: crydev on Fri, 15 November 2013 08:52
|
|
|
Re: Creating a hyperlink label
By: Klugier on Fri, 15 November 2013 15:43
|
|
|
Re: Creating a hyperlink label
By: crydev on Fri, 15 November 2013 17:33
|
|
|
Re: Creating a hyperlink label
By: Klugier on Fri, 15 November 2013 20:20
|
|
|
Re: Creating a hyperlink label
By: crydev on Sun, 17 November 2013 12:05
|
|
|
Re: Creating a hyperlink label
By: Klugier on Sun, 17 November 2013 12:35
|
|
|
Re: Creating a hyperlink label
By: crydev on Sun, 17 November 2013 17:27
|
|
|
Re: Creating a hyperlink label
By: koldo on Fri, 03 October 2014 09:31
|
|
|
Re: Creating a hyperlink label
By: mirek on Mon, 13 October 2014 12:00
|
|
|
Re: Creating a hyperlink label
By: koldo on Tue, 14 October 2014 09:57
|
|
|
Re: Creating a hyperlink label
By: Edward on Sun, 01 March 2015 02:31
|
|
|
Re: Creating a hyperlink label
By: mirek on Sun, 01 March 2015 08:12
|
Goto Forum:
Current Time: Tue May 14 00:11:59 CEST 2024
Total time taken to generate the page: 0.02684 seconds
|