Page 1 of 1

Bridging Windows/Linux differences

Posted: Mon Aug 02, 2010 2:15 am
by Tony0945
When compiling the same wxFrame based code under Windows 2000 and GNOME 2.8, I find the following differences:

1. Windows opens minimized, GNOME opens half-size (correct).

2. Windows has a functional Maximize Button (correct), GNOME has no Maximize button.

3. Windows sizer-sized buttons show full text (correct), GNOME shows truncated text. i.e. "ChannelDown" on Windows, "ChannelDo" on GNOME.

I could use a wxDialog as easily because there is only one frame with standard controls on it. But I read that GNOME dialog boxes don't have maximize buttons.

Can I just add another button and call parent->Maximize() from it? It's kind of kludgy, but I really need to show the frame full-screen.

I can probably toy with the button sizes to get the text to show completely under Linux, but there should be a more seamless way.

Posted: Thu Aug 05, 2010 10:54 am
by Tony0945
Frame style is:

wxTAB_TRAVERSAL | wxCAPTION | wxSYSTEM_MENU | wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxCLOSE_BOX

Posted: Sun Aug 08, 2010 1:17 am
by tbreina
You probably want to post this under the C++ Developers section of the forum.

-Tony

Posted: Tue Aug 10, 2010 1:03 am
by Tony0945
Thanks! Will do.

Posted: Tue Aug 10, 2010 1:11 am
by Tony0945
BTW, I found that adding WX_RESIZE_BORDER fixed the missing Maximize button in Linux. It was not necessary in Windows. Sounds like a bug or just a difference that should be documented