avoid windows resizing with wxFormBuilder

╄→尐↘猪︶ㄣ 提交于 2019-12-23 04:22:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!