>>>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")