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 #14520 is a reply to message #14448] Thu, 28 February 2008 17:09 Go to previous messageGo to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Yes I was too. A test case might be tricky to make as it only stopped working recenty. However, I do have some news which might help your confusion.

When I replace the term (sz.cx-300)/2) with the number 300 say, it all works fine. I thought this could be a number thing. However, when I replace it with this

	int n = (sz.cx-300)/2;
	status.AddFrame(m_progHolder2.Right(n));//(sz.cx-300)/2));
	status.AddFrame(m_progHolder1.Right(n));//(sz.cx-300)/2));


it still doesn't work but when I do this

	int n = max(200,(sz.cx-300)/2);
	status.AddFrame(m_progHolder2.Right(n));//(sz.cx-300)/2));
	status.AddFrame(m_progHolder1.Right(n));//(sz.cx-300)/2));



it works fine so I guess that using GetSize() in the TopWindow constructor is a bad idea and that it doesn't actually have a size till later. Thing is though this code used to work. I can live with it either way so if you think a bug has slipped in or not thats fine with me.

Nick

[Updated on: Thu, 28 February 2008 17:10]

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
Read Message
Read Message
Previous Topic: Statusbar disappears
Next Topic: Using SizeGrip on StatusBar locks mouse on Kubuntu Linux
Goto Forum:
  


Current Time: Wed May 15 17:28:58 CEST 2024

Total time taken to generate the page: 0.02427 seconds