Sorry about that last duplicate email about the core dump, it's
the same email I sent back in August and should be ignored (though
it'd be nice to get rid of the coredump :)
I'm developing a wxPerl script with the aid of wxglade.
I have a grid that I'm populating in my perl script (in other
words, it's empty in wxglade).
The problem is it ends up using more vertical space than the
enclosing wxScrolledWindow. Unfortunately the wxScrolledWindow
doesn't realize that it needs scrollbars until I attempt to resize
the window.
My hierarchy is:
Application
frame_1: MyFrame
sizer_1: wxBoxSizer
notebook_1: wxNotebook
panel_1: wxScrolledWindow
grid_sizer_1: wxFlexGridSizer
When the app starts I fill up grid_sizer_1, which works great,
and panel_1 is set as "Scrollable"
The panel_1 SetSizer is set to grid_sizer_1 as expected (by wxglade, actually).
I also try calling Layout() on everything in the tree (from grid_sizer_1
all the way up to the frame_1) and then call Refresh on frame_1 after
populating the grid_sizer, but I still don't see the scrollbars.
The only "fix" I've managed to find is to set 'wxALWAYS_SHOW_SB' when
I create panel_1, but:
1) wxglade doesn't actually have this option for wxScrolledWindows
(don't know why!) so I have to manually edit the source after building.
2) I only need a vertical scrollbar, and this gives me both.
3) It would be better if it only displayed the scrollbars as needed.
Any thoughts on how to make the scrollbars show up after adding
elements to a grid?
Dave
---------------------------------------------------------------------------
Dave Ljung Madison http://GetDave.com/ 415 341-5555
------------ "Preferred over shiny round objects 2-to-1" ------------------