Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling Close all Feature
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00233522
Message ID:
00233565
Vues:
28
>>>I have some forms that I do not want the user to be able to close without choosing the exit option from a toolbar. I have made set the forms' closable property to .f.. However, one can still choose the 'Window' menu option and choose 'close all' and this will still close these forms. How can I keep this from happening?
>>>
>>>Thanks,
>>>Paul
>>
>>I would think you could trap for this in the QueryUnload event of the form.
>
>Agreed, maybe just placing NODEFAULT in each Queryunload would accomplish that...though the user might wonder why Close All in the menu doesn't work, perhaps just disabling it might be a good way to go...

Yeah, I figured he could test for some "global" flag in the QU as to whether to allow the form to close. But w/o knowing the specifics of his system and exactly what he's trying to accomplish, it's dificult to give a "definitive" answer.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform