Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Creating a hyperlink label
Re: Creating a hyperlink label [message #41221 is a reply to message #41220] |
Fri, 15 November 2013 20:20   |
 |
Klugier
Messages: 1105 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I think the problem is with controls that inherit from LabelBase. It seems that some events are locked for this widgets set.
I have made simply test:
class HyperlinkLabel : public Label {
typedef HyperlinkLabel CLASSNAME;
public:
void LeftDown(Point p, dword keyflags) {
Cout() << "LeftDown!\n";
}
};
It dosen't work, but
class HyperlinkLabel : public Ctrl {
typedef HyperlinkLabel CLASSNAME;
public:
void LeftDown(Point p, dword keyflags) {
Cout() << "LeftDown!\n";
}
};
works as excepted.
For me, you have two options. The first one is to implement control based on RichTextView (It supports hyperlink via Qtf, so implementation should be easy). The second way more complex is created your own hyperlink control based on bare "Ctrl" class. The second way is harder, but can give you additional customization options for instance link hoover.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sat, 16 November 2013 00:32] Report message to a moderator
|
|
|
 |
|
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: Fri Aug 01 14:54:43 CEST 2025
Total time taken to generate the page: 0.08398 seconds
|