Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem closing modal forms in VFP wizard-based application
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Problem closing modal forms in VFP wizard-based application
Divers
Thread ID:
00839301
Message ID:
00839301
Vues:
192
VFP 8 SP1.

I have used the VFP application wizard to create my application. The application includes many forms, and I take advantage of the Quick Start form that the VFP application wizard provides.

Some of the forms in my application have the WindowType property set to 1-Modal. This is because these forms get called by other forms as subroutines. I want the user to close these forms before returning to the calling form.

However, I also want the user to be able to call these forms directly, using the Quick Start dialog.

I have noticed that the modal forms behave properly when called from another form. When the user clicks the Exit button on the form, I execute THISFORM.Release. The form goes away. However, when the form is run from the Quick Start dialog, clicking Exit on the form does not make it go away. It stays on the screen and is active. And, since the form is modal, there is nothing else in the application that I can access.

If I change the WindowType property to 0 - Modeless, the user is able to close the form using the exit button, and return to the Quick Start dialog.

I want to continue using these forms as Modal forms. Any suggestions on how I can get these forms to work with the Quick Start dialog? I have a hunch that the problem lines in the VFP 8 application framework on which I've built the application. I have tried tracing through the code, but it isn't clear to me where the problem lies.

Thanks in advance for your help,
Jim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform