List Info

Thread: EVT_MOVE: bug? (event contains wrong position)




EVT_MOVE: bug? (event contains wrong position)
user name
2006-06-30 08:27:40
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-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )