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 #14412 is a reply to message #275] Mon, 25 February 2008 20:12 Go to previous messageGo to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hey Mirek,

Any chance you could add a couple of ProgressInfo items to your already crowded StatusBar please?

I use the Temporary space at the left plus two InfoCtrls embedded each one in its own InfoCtrl and added to the right then two more InfoCtrls to display other information also added to the right. Like this

// in header
...
	StatusBar 				status;
	InfoCtrl    			m_pos;
	InfoCtrl				m_val;
	InfoCtrl				m_progHolder1;
	InfoCtrl				m_progHolder2;
	ProgressInfo			m_prog1;
	ProgressInfo			m_prog2;

...

// in TopWindow-derived constructor
...
	AddFrame(status);

	Size sz = GetSize();

	m_prog1 = ProgressInfo(m_progHolder1);
	m_prog2 = ProgressInfo(m_progHolder2);
	m_prog1.Text("");
	m_prog1.Width(10);
	m_prog2.Text("");
	m_prog2.Width(10);
	status.AddFrame(m_progHolder2.Right((sz.cx-300)/2));
	status.AddFrame(m_progHolder1.Right((sz.cx-300)/2));
	
	status.AddFrame(m_val.Right(125));
	m_val.Set("No Value");

	status.AddFrame(m_pos.Right(125));
...


It all used to work but now I don't see m_pos or m_val until I've used at least one of the progress controls to load up a large file using multithreading and posting callbacks.

Is there a way to initialise all these controls so that they are all visible from the start please?

Nick


 
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 16:52:26 CEST 2024

Total time taken to generate the page: 0.02352 seconds