Sergey,
Thank you for your answer, although I'm not sure how i applies to my question.
Let me try to be more precise:
SCREEN = OFF
The entire app consists of three forms.
oMainform is the form from which the other forms are opened.
If no other forms are open or all open forms are minimized, the main form is supposed to be displayed.
To achieve this I had the code you see below in the Deactivate method of Form1.
It's supposed to check if
a) Form2 is an object (i.e. has been opened) and if so, if it's minimized.
or
b) has never been called
In either case, it should display the main form.
Form2 checks for Form1 in a similar fashion.
And like I wrote, it does, but only in VFP.
>See
Re: Minimizing the main Foxpro window Message #
677090.
>
>>In VFP7
>>
>>
>>IF TYPE('oWizard313') = 'O' AND oWizard313.WINDOWSTATE # 1 OR TYPE('oWizard313') = 'U'
>> IF NOT oMainForm.VISIBLE
>> oMainForm.SHOW
>> ENDIF
>>ENDIF
>>
>>When the minimize button is clicked, it does pretty much what it's supposed to do when run from within VFP, but the exe does not seem to catch on to the altered windowstate.
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)