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 » howto add more InfoCtrl's to StatusBar?
Re: howto add more InfoCtrl's to StatusBar? [message #216 is a reply to message #214] Sun, 04 December 2005 18:11 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
ok, I did this way:

#include <CtrlLib/CtrlLib.h>

class MyStatusBar : public StatusBar {
	InfoCtrl  info2;	
public:
	typedef MyStatusBar CLASSNAME;
	MyStatusBar();
};

MyStatusBar::MyStatusBar()
{	
	AddFrame(info2.Width(250));
	info2="info2: Welcome to the Ultimate++ !";
}


class MyClassWindow : public TopWindow {
private:
	MyStatusBar  status1;
public:
	typedef MyClassWindow CLASSNAME;
	MyClassWindow();
};


MyClassWindow::MyClassWindow()
{
	AddFrame(status1.Height(25));  //can't have in MyStatusBar
}

	
GUI_APP_MAIN
{
 	MyClassWindow().Title("MyClassWindow1").Zoomable().Sizeable().Run();
 	MyClassWindow().SetRect(0, 0, 260, 80);
}


Now the 1. question is: howto change their appearance?
2. howto change default text?
 
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: Statusbar disappears
Next Topic: Using SizeGrip on StatusBar locks mouse on Kubuntu Linux
Goto Forum:
  


Current Time: Mon Apr 29 11:44:33 CEST 2024

Total time taken to generate the page: 0.02432 seconds