Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When application is minimized, what event runs?
Message
De
13/09/2006 04:35:24
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01153126
Message ID:
01153211
Vues:
13
>>>When the user minimizes the entire application, I want to run some code, e.g. messagebox('Your application is now minimized!',64,'Note').
>>>
>>>
>>>Where would I put this code?
>>
>>See http://fox.wikis.com/wc.dll?Wiki~ScreenResize and Re: Minimizing the main Foxpro window Message #677090
>
>As per Message #677090, I defined Resizer:
>
>_Screen.AddObject("oResizer", "Resizer")
>
>DEFINE CLASS Resizer AS Custom
>     oScreen = _Screen
>
>     PROCEDURE oScreen.Resize
>          IF _screen.WindowState =1
>              * Main VFP Window is minimized
>          ENDIF
>     ENDPROC
>ENDDEFINE
>
>
>At the end of the program, how do I remove this "Resizer" definition so the screen operates normally again?
>Cyril
_Screen.RemoveObject("oResizer")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform