Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control a click when minimised
Message
De
29/11/2001 20:51:34
 
 
À
29/11/2001 20:10:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00587791
Message ID:
00587801
Vues:
26
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform