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 » Community » Newbie corner » Using a label as a link to a folder
Re: Using a label as a link to a folder [message #46923 is a reply to message #46918] Fri, 16 September 2016 08:26 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3432
Registered: August 2008
Senior Veteran
Hello Giorgio

In Bazaar/Controls4U there is HyperlinkLabel that does the job.

It is so simple that you can even copy it.

class HyperlinkLabel : public Label {
public:
	HyperlinkLabel() {
		NoIgnoreMouse();
		SetInk(LtBlue());
	}
	HyperlinkLabel& SetHyperlink(const char* str) 		{hyperlink = str; return *this;}

private:
	String hyperlink;
	virtual Image CursorImage(Point p, dword keyflags) 	{return Image::Hand();}
	virtual void LeftDown(Point p, dword keyflags) 		{LaunchWebBrowser(hyperlink);}
};


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Truncation
Next Topic: System Requirements, target platforms
Goto Forum:
  


Current Time: Fri May 02 22:33:09 CEST 2025

Total time taken to generate the page: 0.00435 seconds