cmb33595 / ozex

Automatically exported from code.google.com/p/ozex
0 stars 0 forks source link

buttons on every panel are stacked #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile and run

What is the expected output? What do you see instead?
The design intends multiple buttons on the right, as seen in the screenshot 
under Project Home.

My builds look different: buttons on every panel are stacked -- all positioned 
at (0,0), supposedly wxBoxSizer doesn't arrange them. Therefore only the last 
button is seen. It is usually possible to cycle through buttons by hitting Tab, 
however then the button with focus is _not_ the visible one (which even has the 
focus rectangle drawn). Still after some practice it is possible to open the 
tools panel, or even the waypoints panel, and observe that all panels have the 
same problem.

What version of the product are you using? On what operating system?
Current (revision 35), XP Pro SP2 or Fedora Core 12 via Virtual PC 2007.
Actually I encountered the problem in April 2010 (revision 33) though didn't 
try Linux back then.

Please provide any additional information below.
WxWidgets 2.8.11. A static debug build for Windows (it's my development 
machine), a shared build for Linux (wxGTK), both compiled from source.

I'm still new to wxWidgets. Their wiki entry for wxSizer explicitly recommends 
SetSizerAndFit() so there must be reason for that. Is it possible that all of 
you used an even older version of wxWidgets which automagically did the job?

The attached patch fixes the problem on both operating systems.

Original issue reported on code.google.com by sai...@mail.lt on 4 Jan 2011 at 10:53

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Correction: wxWidgets 2.8.10. The 2.8.11 is indeed available but I missed it 
somehow. With the current one, 2.9.11, Ozex can't be compiled at all (perhaps I 
will report a separate issue one fine day).

Original comment by sai...@mail.lt on 4 Jan 2011 at 11:15