Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top level Form...Do not stay.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00302551
Message ID:
00303756
Vues:
23
>I have a single Top Level Form set as modal, and called from my Main prg. It has a number of pages and although I call other forms (all modal) "in Top Level form", my top level form does not close. Exiting the form exits the application, so perhaps that is why it is working. I have recently had problems trying to place a non-modal form over the top of my Top Level Form, and this could be the reason.

There must be either a READ EVENTS somewhere, or at least one Modal form alive. You can test it with a fresh TL, and you'll find it closes (outside of vfp) whether or not it's set to Modal. I assume you have SCREEN = OFF in the Config.fpw.

Anyway, there are all sorts of ways to do things, but the standard way for TLs is to use a READ EVENTS in the main PRG, and then a CLEAR EVENTS somewhere in your app. The typical places for a CLEAR EVENTS are in the TL's Queryunload, Destroy, or a closing TL method. You should find everything working more smoothly by doing this...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform