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 |
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
|
|
|
|
|
howto add more InfoCtrl's to StatusBar?
By: fudadmin on Sat, 03 December 2005 18:29
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
By: fudadmin on Sun, 04 December 2005 18:11
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
By: mirek on Sun, 04 December 2005 18:28
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
By: mirek on Sun, 04 December 2005 18:29
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
By: fudadmin on Sun, 04 December 2005 22:41
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
By: mirek on Sun, 04 December 2005 23:07
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
By: mirek on Mon, 05 December 2005 22:51
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
By: digodigo on Thu, 29 November 2007 15:29
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
By: mirek on Tue, 26 February 2008 21:03
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
|
|
|
Re: howto add more InfoCtrl's to StatusBar?
By: mirek on Sun, 04 December 2005 18:25
|
Goto Forum:
Current Time: Wed May 15 17:28:58 CEST 2024
Total time taken to generate the page: 0.02427 seconds
|