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 » StatusBar&InfoCtrl » add StatusBar fields [EXAMPLE]
add StatusBar fields [EXAMPLE] [message #255] Mon, 05 December 2005 13:34 Go to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
/*
demo - add StatusBar fields -version 1
not very correct according to luzr...
*/
#include <CtrlLib/CtrlLib.h>

class MyClassWindow : public TopWindow {
private:
	Label	label1;	
	StatusBar	status1;
	InfoCtrl	info2;
public:
	typedef MyClassWindow CLASSNAME;
	MyClassWindow();
};


MyClassWindow::MyClassWindow()
{
	//label stuff
	//Note: can't use AddFrame here, use:
	Add(label1.VCenterPos().HCenterPos(350));
	//questions: 350 is width -howto make auto?, what VCenter param does?
	label1.SetLabel("demo\n - add StatusBarFields -\nnot very correct according to luzr...");

	//status stuff
	status1.AddFrame(info2.Width(250));
	AddFrame(status1.Height(25));
	info2="info2: Welcome to the Ultimate++ !";	
}

	
GUI_APP_MAIN
{
 	MyClassWindow().Title("StatusBarFields -v1").Zoomable().Sizeable().Run();
}

[Updated on: Mon, 01 May 2006 10:28]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How do I add a StatusBar on my window
Next Topic: Statusbar disappears
Goto Forum:
  


Current Time: Sat Apr 20 17:34:46 CEST 2024

Total time taken to generate the page: 0.01701 seconds