Hi all
Using VFP8
In my application, which uses _screen, I would like to detect when it gets activated from another windows application, i.e. when a user is using Outlook and then clicks back (or Alt-tab) onto my application.
I tried binding the Activate event to the _screen as below but it didnt work.
Code:
oScreenFocus=NEWOBJECT("ScreenFocus")
BINDEVENT(_screen, "Activate", oScreenFocus, "onfocus")
DEFINE CLASS ScreenFocus AS Custom
PROCEDURE onfocus
MESSAGEBOX("Got Focus")
ENDPROC
ENDDEFINE
Anyone any ideas?
Thanks