I have created a program that I run maximized and I do not want a user
to be able to resize the screen, only minimize it or restore it. I
create the frame using the following:
This works fine to prevent a user from clicking the restore/maximize
button. However, if you double-click the titlebar it resizes. Is there
any way to prevent this from happening. It is worth noting that I am
developing in WinXP for WinXP and am not as concerned about
cross-platform solutions as I am to a fix for this 'problem' in
Windows.
I have created a program that I run maximized and I do not want a user
to be able to resize the screen, only minimize it or restore it. I
create the frame using the following:
This works fine to prevent a user from clicking the restore/maximize
button. However, if you double-click the titlebar it resizes. Is there
any way to prevent this from happening. It is worth noting that I am
developing in WinXP for WinXP and am not as concerned about
cross-platform solutions as I am to a fix for this 'problem' in
Windows.
I don't see this problem, using a dev build from 2004/09/14. However,
I don't see why this should be especially version based as Windows
manages this behavior and it's in response to certain window style
flags. If the maximise button is disabled, then the one in the system
menu should be too, and the double-click behavior should be also. Are
you maybe using anything like WindowBlinds or other third party apps
that might be hooking events?
···
On Sat, 16 Oct 2004 15:20:08 -0500, Lewis Franklin <lewis.franklin@gmail.com> wrote:
I have created a program that I run maximized and I do not want a user
to be able to resize the screen, only minimize it or restore it. I
create the frame using the following:
This works fine to prevent a user from clicking the restore/maximize
button. However, if you double-click the titlebar it resizes. Is there
any way to prevent this from happening. It is worth noting that I am
developing in WinXP for WinXP and am not as concerned about
cross-platform solutions as I am to a fix for this 'problem' in
Windows.
Try calling the frame's SetSizeHints method.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Size your window, then call
(w,h) = theWindow.GetSizeTuple()
theWindow.SetSizeHints( w, h, w, h )
This sets the min and max size of the window
to the current size.
- Sam
···
At 2004-10-16 03:20 PM -0500, you wrote:
I have created a program that I run maximized and I do not want a user
to be able to resize the screen, only minimize it or restore it. I
create the frame using the following:
This works fine to prevent a user from clicking the restore/maximize
button. However, if you double-click the titlebar it resizes. Is there
any way to prevent this from happening. It is worth noting that I am
developing in WinXP for WinXP and am not as concerned about
cross-platform solutions as I am to a fix for this 'problem' in
Windows.
Lewis
__________________________________________________________
Spinward Stars, LLC Samuel Reynolds
Software Consulting and Development 303-805-1446 http://SpinwardStars.com/ sam@SpinwardStars.com