Hi,
In Java there is a feature to find the optimal size for a window/dialogue: When all GUI-elements are added to the layout (using a LayoutManager that are similar to the Sizers of wxWidgets) a method is called that sets the size of the window to the one all these GUI-elements really need.
Is there something similar available in wxWidgets?
Kind regards
Michael
Set Window/Dialogue size to optimal values Topic is solved
Not sure what exactly the LayoutManager does or what the "optimal size" is that you are looking for. There are a couple of options that might work for you. Check out the docs for wxSizer.
Look at
wxSizer::Fit()
wxSizer::FitInside()
wxSizer::Layout()
I think one of those might be similar to what you are looking for.
-Max
Look at
wxSizer::Fit()
wxSizer::FitInside()
wxSizer::Layout()
I think one of those might be similar to what you are looking for.
-Max