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 » Splitter » add controls to splitter bar, how? [NEEDS MORE IMPLEMENTATION...]
Re: add controls to splitter bar, how? [message #1877 is a reply to message #1876] Fri, 24 March 2006 15:31 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
E.g.

#include <CtrlLib/CtrlLib.h>

class MySplitter : public Splitter {
//	int lrpos[3];
	Button btn;
public:
	typedef MySplitter CLASSNAME;
	void	Move();
	Callback WhenLeftDouble;
	void LeftDouble(Point, dword);
	MySplitter();

};

void MySplitter::LeftDouble(Point, dword){
	WhenLeftDouble();
}

void MySplitter::Move(){
//	PromptOK("test");
	SetPos(100);
}

MySplitter::MySplitter(){
	//btn.SizePos().TopPos(10);
	//Add(btn);
	WhenLeftDouble <<THISBACK(Move);

}

class App : public TopWindow {
	LineEdit ed1,ed2;
	MySplitter horz;
	StatusBar status;
public:
	typedef App CLASSNAME;
	void Show();
	App();
};


App::App(){
	
		horz.Add(ed1);
		horz.Add(ed2);
		
		Add(horz.Horz().VSizePos(35,35));
		AddFrame(status);

		Sizeable();
}


GUI_APP_MAIN
{	
	App().Run();
}



I want "move right" "move left" buttons on splitter bar...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how programatically change widths/heights of splitted controls? [SOLVED]
Next Topic: setters of Splitter should return Splitter& [ADDED]
Goto Forum:
  


Current Time: Fri Apr 26 19:12:42 CEST 2024

Total time taken to generate the page: 0.02828 seconds