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 #41235 is a reply to message #41218] Sun, 17 November 2013 17:27 Go to previous messageGo to previous message
crydev is currently offline  crydev
Messages: 151
Registered: October 2012
Location: Netherlands
Experienced Member
Thanks Klugier,

That is a very easy and effective way. Thank you for your help, the issue is resolved. For other users, the class' code is below. Smile

class HyperlinkLabel : public ParentCtrl
{
private:
	Label mLinkLabel;
	
	virtual Image CursorImage(Point p, dword keyflags) { return Image::Hand(); }
	
	virtual void LeftDown(Point p, dword keyflags) { this->WhenLeftDown(); }
public:
	Callback WhenLeftDown;
	
	HyperlinkLabel() { *this << this->mLinkLabel.SizePos(); }
	
	HyperlinkLabel& SetLabel(const char* lbl) { this->mLinkLabel.SetLabel(lbl); return *this; }
};
 
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 21:51:05 CEST 2024

Total time taken to generate the page: 0.02454 seconds