I am having problems preventing the resize on a wxMDIChildFrame
with Windows 2000.
I searched through the archive and have tried multiple combinations
of ~wxTHICK_FRAME and ~wxRESIZE_BORDER but I can still resize the
window with the mouse.
> I am having problems preventing the resize on a wxMDIChildFrame
> with Windows 2000.
>
> I searched through the archive and have tried multiple combinations
> of ~wxTHICK_FRAME and ~wxRESIZE_BORDER but I can still resize the
> window with the mouse.
>
> Is there something else when using wxMDI frames?
It doesn't matter which combination I used for the style, the only ones
which appear to work are
wxMAXIMIZE and wxICONIZE. Specifying wxDEFAULT_FRAME_STYLE | ~THICK_FRAME
causes
the window to iconize but still allows for resizing.
It doesn't matter which combination I used for the style, the only ones
which appear to work are
wxMAXIMIZE and wxICONIZE. Specifying wxDEFAULT_FRAME_STYLE | ~THICK_FRAME
causes
the window to iconize but still allows for resizing.
Any other thaughts?
Platform?
An ugly solution would be to catch EVT_SIZE and if the new size is not what
you want then reset the size.
You should probably enter a bug report about it since SetSizeHints really
should work.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
>
> It doesn't matter which combination I used for the style, the only ones
> which appear to work are
> wxMAXIMIZE and wxICONIZE. Specifying wxDEFAULT_FRAME_STYLE |
~THICK_FRAME
> causes
> the window to iconize but still allows for resizing.
>
> Any other thaughts?
Platform?
Windows 2000.
An ugly solution would be to catch EVT_SIZE and if the new size is not
what
you want then reset the size.
I was afraid of that.
You should probably enter a bug report about it since SetSizeHints really
should work.
That's what I've got too and just wxCAPTION worked for me. Could be some
change in the 2.3 branch that makes that possible, if so then there is good
new for you in the upcoming release.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!