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 #218 is a reply to message #216] Sun, 04 December 2005 18:28 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
fudadmin wrote on Sun, 04 December 2005 12:11

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?



While this code is basically, I would like to use it to demonstrate one thing: MyStatusBar in unnecessary - you should rather place "info2" to MyClassWindow.
 
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 15:55:19 CEST 2024

Total time taken to generate the page: 0.04651 seconds