On Mon, 12 Dec 2022 16:33:34 +0100 Django wrote:
D> I created a pane with wxFormBuilder. wxFormBuilder shows what I expected (see
D> wxDesigner.jpg).
D>
D> Then I combined the work from wxFormBuilder into an app and in the app, the
D> panes don't resize (see wxApp.jpg).
Sorry, it's really difficult to say what you're doing wrong without seeing
a short and self-contained example.
D> MainFrame adds the footer (ButtonPane) like this:
D>
D> footer = new ButtonPane(this);
D> grid->Add(footer, wxGBPosition(2, 0), wxGBSpan(1, 1)
D> , wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5);
D>
D> grid->AddGrowableCol(0);
D> grid->AddGrowableRow(1);
D>
D> What am I missing to resize ButtonPane to fill whole width of MainFrame?
E.g. here I just don't understand at all what is going on: is "grid" the
same grid that is used for the rest of the layout? If so, how do you expect
the footer to expand without using a span for it?
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/