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 #41219 is a reply to message #41218] Fri, 15 November 2013 15:43 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 use LeftDown method instead of LeftUp. Here is exemplary code from my private control (LinkCtrl):

void LinkCtrl::LeftDown (Point p, dword keyflags) {
	for (int i = 0; i < linkFields.GetCount (); i++) {
		if (p.x >= linkFields[i].left && p.x <= linkFields[i].right) {
			if (p.y >= linkFields[i].top && p.y <= linkFields[i].bottom) {
				if (!WhenLink.Empty ()) {
					overrideCursor = false;
					WhenLink ();
					overrideCursor = true;
				}
			}
		}
	}
	
	return;
}


I am not sure that Label supports such functionality.But, you can always implement HyperlinkCtrl by your own. If you want to open web browser with specific url try following function:
LaunchWebBrowser(const String& url)


Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Fri, 15 November 2013 16:44]

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: Tue May 14 02:41:57 CEST 2024

Total time taken to generate the page: 0.02105 seconds