问题
Working with wxFormBuilder under windows 7, Is there any way to set my main wxFrame to a fixed size avoiding resizing? Thanks
回答1:
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)
.
回答2:
Yes, you can avoid a wxFrame resizng in wxFormBuilder by simple specifying you frame size in size properties and provide the same frame size in maximum and minimum values, that would prevent the window from being resized.
来源:https://stackoverflow.com/questions/12956490/avoid-windows-resizing-with-wxformbuilder