Cesar Ortiz
Cesar Ortiz

Reputation: 932

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

Upvotes: 0

Views: 1708

Answers (2)

25mhz
25mhz

Reputation: 1092

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.

Upvotes: 1

VZ.
VZ.

Reputation: 22688

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).

Upvotes: 2

Related Questions