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 #37855 is a reply to message #37854] Sun, 18 November 2012 21:59 Go to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello Witriol

Perhaps it is not the nicest way to do it but you may do something like this:

class Gun : public WithGunLayout<TopWindow> {	
....
public:
....	
	Gun() {
		mj.Init(this);
	}
	Kep_lay mj;
	void RightMouseHandler(Point p, dword keyFlags) {
		// Do it.
	}
....
};

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

	void Init(Gun *_parent) {parent = _parent;}
	virtual void RightDown(Point p, dword keyFlags) {
		parent->RightMouseHandler(p, keyFlags);
private:
	Gun *parent;
};



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 02:16:03 CEST 2024

Total time taken to generate the page: 0.02550 seconds