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 #41221 is a reply to message #41220] Fri, 15 November 2013 20:20 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1119
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

 
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: Wed Sep 02 17:57:47 GMT+2 2026

Total time taken to generate the page: 0.00580 seconds