Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executable does not function with VFP 6
Message
From
10/10/2002 14:13:20
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00709697
Message ID:
00710000
Views:
13
>>Hi Ed,
>>
>>How can you be everywhere at the same time? ;-)
>>Always there to help... appreciated.
>>
>>Your comments forced me to review all the parameters and indeed the property of the form had to be Window Type = 1 (Modal)
>>
>>It now works fine in both .APP and .EXE
>>
>>But I have this VFP window behind when running the .EXE. How can I get rid of that?
>>
>
>In order to remain Modal, the Form needs to run in the context of the VFP screen; to fix this, make your form's ShowWindow property = 2, and then use SCREEN=OFF in the CONFIG.FPW to toally hide the VFP main screen (the APP or EXE running in development mode can't do this, but you can add _SCREEN.Visible = .F. to the Init of your form. Top-Level forms are inherently modeless (IOW they cannot be modal); your startup .PRG should do something along the lines of:
>
>ON SHUTDOWN CLEAR READS

error - this should read:
ON SHUTDOWN CLEAR EVENTS
>DO FORM MyTopLevelForm
>READ EVENTS
>ON SHUTDOWN
>CLOSE ALL
>CLEAR ALL
>QUIT
>
>and you can then have the Quit menu/command button of the Top-Level form issue:
>
>CLEAR EVENTS
>thisform.Release()
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform