Hello,
I want to trigger two functions:
one, when the app loses the focus
and another, when the app gains the focus.
I tried in the wxframe derived class:
self.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
self.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus)
but I didn't get any event.
So I found finally wx.EVT_ACTIVATE.
This event is unfortunatly generated also, if some
dialog is called from within wx.Frame.
Also if another wx.frame derived class is called
from wxApp. This make a new entry in the Windows XP Tasklist.
example:drFindReplaceInFilesDialog(wx.Frame)
Is there another way, to only get any event,
or some other hint, if really the task is changed
(from the current wxapp to another task and back)?
many thank in advance!
···
--
Franz Steinhaeusler