Event to signal coming into the foreground?

Is there an event that I could bind to receive when the user has brought the application into the foreground? For instance, if another application has been in the foreground, but then the user selects my app again?

Thanks,
-M

Would a focus event be what you're after? -

http://www.wxpython.org/docs/api/wx.FocusEvent-class.html

···

On 4/16/06, Marc Hedlund <marc@precipice.org> wrote:

Is there an event that I could bind to receive when the user has brought
the application into the foreground? For instance, if another application
has been in the foreground, but then the user selects my app again?

Thanks,
-M

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Marc Hedlund wrote:

Is there an event that I could bind to receive when the user has brought the application into the foreground? For instance, if another application has been in the foreground, but then the user selects my app again?

EVT_ACTIVATE is sent to a frame when it is brought to the foreground, and EVT_ACTIVATE_APP is sent to the app object.

···

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

Perfect. Thanks!

-M

···

On Sat, 15 Apr 2006, Robin Dunn wrote:

Is there an event that I could bind to receive when the user has brought the application into the foreground? For instance, if another application has been in the foreground, but then the user selects my app again?

EVT_ACTIVATE is sent to a frame when it is brought to the foreground, and EVT_ACTIVATE_APP is sent to the app object.