Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I run a form as an .exe without VFP window 3

Status
Not open for further replies.

jworley

Programmer
Jun 19, 2000
36
GB
I would like to run a form on it's own without the main VFP window when compiled into an .exe Anyone know if this is possible ?

Jim Worley
jim@aits-uk.net
15 years practical IT experience from sales to support to development plus B.Sc. (Hons) Computer Studies, fluent German speaker, willing to have a go at anything and don't suffer fools gladly !
 
SCREEN = OFF in your config.fpw.

HTH,
Weedz (Wietze Veld)
veld4663@exact.nl

They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best.

After the GoldRush - Steve McConnell
 
One problem - when i put this in the config.fpw the screen disappears, but so does my form.

I've got a start.prg that i've set as main:

do form bcalc
read events

And in the bcalc form in the unload method, that's where I clear events

If I take the screen = off line out of the config.fpw the form loads but in the main foxpro window. Any ideas ?

Jim Worley
jim@aits-uk.net
15 years practical IT experience from sales to support to development plus B.Sc. (Hons) Computer Studies, fluent German speaker, willing to have a go at anything and don't suffer fools gladly !
 
Hi Jim,

Set the form's ShowWindow property to 2-As Top Level Form. Jon Hawkins

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Jim,
To supplement what's already been posted, to hide the main Foxpro window there is a clear explanation on how to do this in the help file.

VFP 5.0: Online Documentation -> Developer's Guide -> Part 3: Creating the Interface -> Chapter 9: Creating Forms -> Hiding the Main Visual FoxPro Window

VFP 6.0: Help File -> Using Visual FoxPro -> Programmer's Guide -> (Part 3:) Creating the Interface -> (Chapter 9:) Creating Forms -> Hiding the Main Visual FoxPro Window

Rick

 
hoho, i have no help file
can you help me let me know how to?
or can anyone send a help file to me ??
thanks !!
 
Hi JWorley,

You can run a form out of VFP main window by setting the DESKTOP property of your form to true.

The problem is that if you set _screen.visible=.f. also your form is not visible.

You can do:

set SCREEN=OFF in your config.fpw

in the main program set

_SCREEN.Height=0
_SCREEN.Width=0

in the moved event of your form define

_SCREEN.Top=ThisForm.Top
_SCREEN.Left=ThisForm.Left

so your little vfp screen remain hided if you move your form.

in the init event of your form write:

This.Moved
_screen.visible=.t.

Bye bye Andrea C.P.
Italy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top