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 » TabCtrl » Tabctrl and RightDown.
Re: Tabctrl and RightDown. [message #37815 is a reply to message #37812] Wed, 14 November 2012 21:11 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello Witriol

That is easy. Instead of calling directly

Withkep_lay <StaticRect> mj;


you can create explicitly the class adding the mouse handler

class Kep_lay : public Withkep_lay<StaticRect> {
public:
	typedef Kep_lay CLASSNAME;

	virtual void RightDown(Point p, dword keyFlags) {
		Exclamation(Format("Clicked on %d:%d", p.x, p.y));
	}
};


and including Kep_lay mj; inside Gun class.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Why not drop ParentCtrl pane and add Ctrls directly to TabBarCtrl?
Next Topic: TabBar min tab count
Goto Forum:
  


Current Time: Mon May 13 07:33:15 CEST 2024

Total time taken to generate the page: 0.02710 seconds