Discussion:
Statusbar windows 8 size problems
Dan Gudmundsson
2014-07-02 07:40:47 UTC
Permalink
A user have reported that the statusbar have problems on windows 8
(wxWidget-2.8.12)

See Loading Image...

Is there anything I can do to workaround that, currently I just create the
statusbar
without any flags, attach it to the frame and set status text occasionally.

Thanks
/Dan
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-07-02 12:04:10 UTC
Permalink
On Wed, 2 Jul 2014 09:40:47 +0200 Dan Gudmundsson wrote:

DG> A user have reported that the statusbar have problems on windows 8
DG> (wxWidget-2.8.12)
DG>
DG> See http://synrc.com/lj/observer-broken-statusbar.png
DG>
DG> Is there anything I can do to workaround that, currently I just create the
DG> statusbar without any flags, attach it to the frame and set status text
DG> occasionally.

This looks like http://trac.wxwidgets.org/ticket/10956 so you could

(a) Apply the patch from there.
(b) Avoid the circumstances described there, i.e. create the status bar
after creating the menu bar.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Dan Gudmundsson
2014-07-02 12:58:39 UTC
Permalink
Thanks for ideas, but I do already create and set the menubar before
creating statusbar.

Sounds like a timing issue then, so maybe tweaking my code can workaround
the issue.

I currently do not have access to a win 8 machine so the tweaking will have
to wait,
the code works fine on wIn 7 (and darwin linux)

Was the fix ever backported to 3.0.1?

<erlang code>

%% Setup Menubar & Menus
MenuBar = wxMenuBar:new(),

observer_lib:create_menus(MenuBar, default),

wxFrame:setMenuBar(Frame, MenuBar),
StatusBar = wxStatusBar:new(Frame),
wxFrame:setStatusBar(Frame, StatusBar),

</erlang code>
Post by Vadim Zeitlin
DG> A user have reported that the statusbar have problems on windows 8
DG> (wxWidget-2.8.12)
DG>
DG> See http://synrc.com/lj/observer-broken-statusbar.png
DG>
DG> Is there anything I can do to workaround that, currently I just create the
DG> statusbar without any flags, attach it to the frame and set status text
DG> occasionally.
This looks like http://trac.wxwidgets.org/ticket/10956 so you could
(a) Apply the patch from there.
(b) Avoid the circumstances described there, i.e. create the status bar
after creating the menu bar.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
David Connet
2014-07-02 13:29:25 UTC
Permalink
Post by Dan Gudmundsson
Thanks for ideas, but I do already create and set the menubar before
creating statusbar.
Sounds like a timing issue then, so maybe tweaking my code can
workaround the issue.
I currently do not have access to a win 8 machine so the tweaking will
have to wait,
the code works fine on wIn 7 (and darwin linux)
Was the fix ever backported to 3.0.1?
<erlang code>
%% Setup Menubar & Menus
MenuBar = wxMenuBar:new(),
observer_lib:create_menus(MenuBar, default),
wxFrame:setMenuBar(Frame, MenuBar),
StatusBar = wxStatusBar:new(Frame),
wxFrame:setStatusBar(Frame, StatusBar),
</erlang code>
I'm using wxFrame::CreateStatusBar (instead of new/SetStatusBar). Maybe
that would help?

Dave
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Dan Gudmundsson
2014-07-02 14:10:28 UTC
Permalink
I think I did in the actual version tested by user.

But I have other problems with that in the erlang port. (long explanation)..
Post by David Connet
Post by Dan Gudmundsson
Thanks for ideas, but I do already create and set the menubar before
creating statusbar.
Sounds like a timing issue then, so maybe tweaking my code can
workaround the issue.
I currently do not have access to a win 8 machine so the tweaking will
have to wait,
the code works fine on wIn 7 (and darwin linux)
Was the fix ever backported to 3.0.1?
<erlang code>
%% Setup Menubar & Menus
MenuBar = wxMenuBar:new(),
observer_lib:create_menus(MenuBar, default),
wxFrame:setMenuBar(Frame, MenuBar),
StatusBar = wxStatusBar:new(Frame),
wxFrame:setStatusBar(Frame, StatusBar),
</erlang code>
I'm using wxFrame::CreateStatusBar (instead of new/SetStatusBar). Maybe
that would help?
Dave
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...