I have an application which constructs its GUI dynamically. It is thus composed of differents nested wxWindow derived classes, and nested derived wxSizer classes to organise children windows.
On some user actions, I can add of suppress some wxWindows (for example, a wxTextCtrl). I would want, directly from the parent wxPanel to trigger a full resize of everything, so that the full display is correct. Because today, for example, when I add an element, the parent may not resize properly, not letting enough space for the display of the added element.
But I do not find exaclly which command to emit to do this. I tried the followings, but none of them worked properly :
Code: Select all
top_window->Layout();
top_window->Refresh();
top_window->Fit();
Many thanks in advance,
Brice