Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Revisting Form's X-Close State
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00810892
Message ID:
00810895
Vues:
20
Terry,

Did you try to issue following command after modal form is closed?
_Screen.Closable = .F.
_Screen.Closable = .T.
>This project has a menu and the 'BAR' has ALT hot keys. This form opens a modal form that does some excel automation and presents some graphs.
>
>As expected, when calling a modal form that opens additional objects, the main form's X-Close button goes into a mixed or disabled state. As in every project where I visit this issue - I fooled around looking for a work-around to enable the X-Close button's state.
>
>I noticed when the modal form was closed, that pressing the ALT key restored the X-Close button's state.
>
>So in the code, just after the modal form is called, I entered this code:
>KEYBOARD '{ALT}' (I also used KEYBOARD '{ALT+F}', but it opened the "File' menu).
>
>Anyway, KEYBOARD '{ALT}' raised an error. Is there a way to programatically 'press' the ALT key and not force an error. What's the latest on restoring a form's X-Close button state?
>
>Thanks
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform