Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executable does not function with VFP 6
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00709697
Message ID:
00710176
Vues:
18
>>>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()
========================================
Thanks for the correction - I will make some test tomorrow morning.
Is there a difference between thisform.Release() and RELEASE THISFORM ??
Réal Philippon
www.ultra.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform