Moving wxMiniFrame lame question

My guess is that the frame still gets moved, regardless of whether your
process the MOVE event or not. You probably want to keep the window
coordinates when you create thewxMiniFrame, and then move it back to the
original coordinates in the MOVE event handler...

jw

···

-----Original Message-----
From: Ilia Kats [mailto:ilia_kats@hotmail.com]
Sent: Thursday, April 03, 2003 6:59 AM
To: wxpython-users@lists.wxwindows.org
Subject: [wxPython-users] Moving wxMiniFrame lame question

Hi,

I got a wxMiniFrame and I don't want it to be moving... I
tried to do it
trough the wxEV_MOVE event [to catch the event and keep it
without skiping
:slight_smile: ]. What should I do?

Thanx

Wyant, Jaime wrote:

From: Ilia Kats [mailto:ilia_kats@hotmail.com]
Sent: Thursday, April 03, 2003 6:59 AM
To: wxpython-users@lists.wxwindows.org
Subject: [wxPython-users] Moving wxMiniFrame lame question

Hi,

I got a wxMiniFrame and I don't want it to be moving... I tried to do it
trough the wxEV_MOVE event [to catch the event and keep it without skiping

EVT_MOVE happens after the window has moved, so you can't prevent the move by Skip'ing it.

:slight_smile: ]. What should I do?

The best you can do is move it back.

···

-----Original Message-----

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Wyant, Jaime wrote:

>>From: Ilia Kats [mailto:ilia_kats@hotmail.com]
>>Sent: Thursday, April 03, 2003 6:59 AM
>>To: wxpython-users@lists.wxwindows.org
>>Subject: [wxPython-users] Moving wxMiniFrame lame question
>>
>>
>>Hi,
>>
>>I got a wxMiniFrame and I don't want it to be moving... I
>>tried to do it
>>trough the wxEV_MOVE event [to catch the event and keep it
>>without skiping
>>:) ]. What should I do?
>>
>>Thanx
>>
>>

My guess is that the frame still gets moved, regardless of whether your
process the MOVE event or not. You probably want to keep the window
coordinates when you create thewxMiniFrame, and then move it back to the
original coordinates in the MOVE event handler...

Did it. It works fine, but still frame movement can be seen. Is there a way
to fix it? Here is what I do:
def OnMoveWindow(self, event):
        self.Show(false)
        event.Skip()
        self.Move((4,50))
        self.Show(true)
        return

···

>>-----Original Message-----