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:
00303764
Vues:
24
>>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...

As you surmised, SCREEN=OFF, but I assure you, I have not used a READ EVENTS anywhere in this application. Most of the time the only form open is the TL form, which is set to Modal! I accept your comments and will implement your suggestions, as I realise that working against specs will probably lead to problems somewhere, but the app has worked with few hitches so far!

David
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform