Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When application is minimized, what event runs?
Message
From
13/09/2006 01:29:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01153126
Message ID:
01153197
Views:
16
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform