Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control a click when minimised
Message
From
29/11/2001 20:51:34
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00587791
Message ID:
00587801
Views:
24
>Dear all,
>
>how can I tell when a user clicks on a minimumised appliaction, so I can tell the app to do some processing, but remain minimumised.
>
>Thanks




Simiarly question in UT, check maximize application and take action.
I hope this help:
DEFINE CLASS ScreenHook AS CUSTOM
oScr = _SCREEN
PROCEDURE oScr.Resize()
    * Code here to handle resize of _SCREEN
    IF _SCREEN.WINDOWSTATE = 1 && minimize
       * your background task code here
    ENDIF
ENDPROC
ENDDEFINE

_SCREEN.NewObject("oSreen", "ScreenHook")  && VFP 5 use AddObject
An other silly way is to make a Timer, Check _SCREEN.WINDOWSTATE every min.
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Reply
Map
View

Click here to load this message in the networking platform