Paul:
Maybe this will help...and maybe you will confused...
I did an app that when the form was called from the main exe the window 
state was in a top level form as a global boolean was set in the main exe.
But when the form was called as a stand alone exe the var did not exist 
(vartype = U for that boolean) then a background form was launched as 
the top level form and then the form that held the data was launched and 
the showwindow state stayed the same as 'in a top level form'. As you 
know showwindow is read only at run time. A read events was placed in 
the activate event method; when called from the main exe the vartype 
existed and the read events was from the main form.
When called as a stand alone the clear events was placed in the release 
method.
So showwindow state never changed. Only what form was launched for the 
stand alone exe form was to appear in.
I hope this did help.
Regards,

Jack Skelley


Paul Newton wrote:
> Hi all
> 
> I have a form which sometimes needs to be displayed as a top-level form 
> and at other times in-screen (this depends on whether my EXE which 
> contains the form is called as a stand-alone EXE or from within another 
> VFP APP/EXE)
> 
> At the moment I am storing two identical (well identical except for the 
> ShowWindow property) copies of the form (form_toplevel and 
> form_inscreen) in the project and compiling the EXE with both forms.  
> The "main" program in the EXE decides which of the two form needs to be 
> called.
> 
> I wondered if there is a better way of dealing with this - I thought 
> maybe I could save (one of the) forms as a class and then create either 
> a toplevel or inscreen version as required - but I cannot see how to do 
> this or even if it is possible (I suspect not)
> 
> Thanks
> 
> Paul Newton
> 
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to