- Create a wxFrame
- Add a sizer
- Add a notebook
- Add a notebook page
- Add a sizer - change orientation to vertical
- Add two sizers to the previous - change orientation
to horisontal
- Add a button to the top sizer - change width to 300
- Add a button to the bottom sizer
- Compile and run
- Compare compiled Frame with IDE Frame
The IDE Frame will usually have a sizer and button that
is not completely displayed within the frame. Whereas
the compiled app seems to layout correctly.
aitkens@pctmail.net
Screen shot
I checked this with 7.4. It appears that changing the width of the button to 300 makes it larger than the default window size. For some reason, the visual designer wasn't auto-expanding to fit the larger component. In my test, the window still doesn't autoexpand, but does flicker as if it is trying to do so. It stops flickering when I expand it manually.
So the behavior is not ideal, but it's not necessarily a bug. I'll keep the post open to remind me (or others) to look at the auto-expand code for sizers to see if we can't get it to correctly expand the window size when a component is bigger than the sizer.