Hi,
>> self is wx.Frame descendant. I've yet to see the
need to override
>> OnSize method in any other controls, sizers do the
nice job. And I
>> bind EVT_SIZE and EVT_MOVE in my frame only because
I want to track the
>> window size and position to write it to config file
on app exit, so
>> that it can be restored on next app start.
>
> You can do that in an EVT_CLOSE handler.
Small hint: pay attention to a frame state. It can be
maximized or even
iconized (!) [for example if Windows going to shutdown while
application
still running]. GetSize/Position functions returns some
"crazy" values for
iconized window.
Vladimir Ignatov
------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribe lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help lists.wxwidgets.org
|