I am using a frame. Once I open the frame in minimum size
and maximize the frame and stores its max size and position information in a
configuration file.
Again I open the same frame, I read the max size and
position information of the frame from the configuration file and set the data size
and position of the frame to maximum.
But when I press the Maximize button of frame, it is not able
minimum to its original size. Does it take the maximum and minimum size as
maximum size.
I am using a frame. Once I open the frame in minimum size and maximize the frame and stores its max size and position information in a configuration file.
Again I open the same frame, I read the max size and position information of the frame from the configuration file and set the data size and position of the frame to maximum.
But when I press the Maximize button of frame, it is not able minimum to its original size. Does it take the maximum and minimum size as maximum size.
I would use EVT_MAXIMIZE and EVT_ICONIZE, or maybe just the IsMaximized and IsMinimized methods to keep track of what state the frame is in, and only store the regular size in the config file as well as the state. Then when the app runs again you can set the size of the frame to the regular size and if it was maximized before you can then call Maximize.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Wednesday, February 20, 2008 6:15 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] minimize the frame
gopal mishra wrote:
I am using a frame. Once I open the frame in minimum size and maximize
the frame and stores its max size and position information in a
configuration file.
Again I open the same frame, I read the max size and position
information of the frame from the configuration file and set the data
size and position of the frame to maximum.
But when I press the Maximize button of frame, it is not able minimum to
its original size. Does it take the maximum and minimum size as maximum
size.
I would use EVT_MAXIMIZE and EVT_ICONIZE, or maybe just the IsMaximized
and IsMinimized methods to keep track of what state the frame is in, and
only store the regular size in the config file as well as the state.
Then when the app runs again you can set the size of the frame to the
regular size and if it was maximized before you can then call Maximize.
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org