annoying statusbar bug Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
raph
In need of some credit
In need of some credit
Posts: 4
Joined: Wed Apr 18, 2007 6:31 pm

annoying statusbar bug

Post by raph »

Hi

my wx version: wxMSW-2.8.3

If you click an item in the menubar, the last text in the statusbar will be erased.
So you aren't able to set a "default value".
Just compile samples/statbar to see the bug.

Greetings raph
protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol »

Thats not really a bug.

When you use the "status text" arg when appending the menu item, you pretty much say change the status bar to this.

I guess it would be a "feature" to have it remember the orig status text value.

best regards.
/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Post by ONEEYEMAN »

Hi,
If you don't want this behavior, create the menu with just menu text, don't supply second parameter.
raph
In need of some credit
In need of some credit
Posts: 4
Joined: Wed Apr 18, 2007 6:31 pm

Post by raph »

I just compiled wxMSW-2.6.4 with its statbar sample, and it behaves as expected:
By default, the status text shows "Welcome to wxWidgets!". If I hover "File"->"Exit", the status bar shows "Quit this program" and after closing the menu, goes back to "Welcome to wxWidgets!".
On wxMSW-2.8.3 the status text does not return to "Welcome to wxWidgets!" but stays empty when the menu is closed (but it probably should, see Push/PopStatusText).
Doesn't it look like a bug? :D

regards raph
protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol »

That still isn't a bug. Thats more of a feature. You're explicitly telling the status text to change, the fact that it returns to the original text is a bonus (a feature).

best regards.
/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!
raph
In need of some credit
In need of some credit
Posts: 4
Joined: Wed Apr 18, 2007 6:31 pm

Post by raph »

protocol wrote:That still isn't a bug. Thats more of a feature. You're explicitly telling the status text to change, the fact that it returns to the original text is a bonus (a feature).

best regards.
Yes, I would be happy if it would return to the original text. But in fact, this only happens with wx2.6.4. With wx2.8.3 it does not return to the original text , what I think, is a bug.

regards raph
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Post by ONEEYEMAN »

raph,
It is a regression.
It was fixed in 2.6.4, but if you try 2.6.3, I think you will find the same behavior...
Look at CVS commits, or ask on wx-dev for the proper fix

Thank you.
raph
In need of some credit
In need of some credit
Posts: 4
Joined: Wed Apr 18, 2007 6:31 pm

Post by raph »

Thx, I'm going to use the current cvs branch.
Post Reply