Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Revisting Form's X-Close State
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00810892
Message ID:
00810895
Views:
19
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform