Ch Lamprecht wrote:
I am facing a problem here with Layout of BoxSizer not being updated: I
want to dynamically add/remove widgets to/from a sizer and have the
Sizer and Scrollbars adjust according to the new content of the Sizer.
The only way I found to force Layout updating was to change the size of
the toplevel window (see EVT_BUTTON... below).
Seems to work but looks like a dirty hack.
Being new to Wx I am quite surely missing something here:
Solved:
Adding
$sz->FitInside( $scr );
to the Buttons event handler worked.
Cheers, Christoph