Search code examples
wxwidgetswxformbuilder

avoid windows resizing with wxFormBuilder


Working with wxFormBuilder under windows 7, Is there any way to set my main wxFrame to a fixed size avoiding resizing? Thanks


Solution

  • I don't know how to do it specifically with wxFB, but you need to remove the wxRESIZE_BORDER style from your frame. As it is used by default, you may need to explicitly specify the flags you do want to use, e.g. wxDEFAULT_FRAME_STYLE & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX).