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 #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: 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

 
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: Fri Aug 01 14:54:43 CEST 2025

Total time taken to generate the page: 0.08398 seconds