wxStatusBar goes blank after using wxMenu

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
BobsTheDude
Earned a small fee
Earned a small fee
Posts: 23
Joined: Wed Mar 06, 2019 10:33 pm

wxStatusBar goes blank after using wxMenu

Post by BobsTheDude » Wed Aug 26, 2020 12:55 pm

I'm just getting around to the Windows version and I noticed something that seems strange.

I have a Status bar with 2 fields, where both fields have text displayed. If I use the menu, field 0 goes blank while field 1 still displays the text. I tried several other 3rd party programs and do not see the symptoms.

So is this a Window thing? or am I missing something?

Thanks,

B

User avatar
[email protected]
Experienced Solver
Experienced Solver
Posts: 78
Joined: Wed Jul 29, 2020 6:06 pm

Re: wxStatusBar goes blank after using wxMenu

Post by [email protected] » Wed Aug 26, 2020 1:28 pm

By default wxWidgets displays the help texts for the menu items in statusbar field 0. You can disable this with wxFrame::SetStatusBarPane(-1)
https://docs.wxwidgets.org/trunk/classw ... 78c00ac07f

BobsTheDude
Earned a small fee
Earned a small fee
Posts: 23
Joined: Wed Mar 06, 2019 10:33 pm

Re: wxStatusBar goes blank after using wxMenu

Post by BobsTheDude » Wed Aug 26, 2020 4:52 pm

[email protected] wrote:
Wed Aug 26, 2020 1:28 pm
By default wxWidgets displays the help texts for the menu items in statusbar field 0. You can disable this with wxFrame::SetStatusBarPane(-1)
https://docs.wxwidgets.org/trunk/classw ... 78c00ac07f
ok, makes perfect sense thank you.

Post Reply