Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executable does not function with VFP 6
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00709697
Message ID:
00711541
Views:
11
Ed,

Ok. Now the small sample program works just fine in both .APP and .EXE format. And the VFP window in the background does not show when I add _SCREEN.Visible = .F. in the main program.

When I run this application, there is a fast flash before I can see the Form. It seems to open and close the background VFP window. But if I put SCREEN=OFF in CONFIG.FPW as you told me, no more flashing window before showing the modal form. But there is a flash on exit. It is not nice. You have another trick to avoid 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()
>>========================================
>>Thanks for the correction - I will make some test tomorrow morning.
>>Is there a difference between thisform.Release() and RELEASE THISFORM ??
>
>I'm not sure of this, but RELEASE thisform may invoke the QueryUnload Event.
Réal Philippon
www.ultra.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform