Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Revisting Form's X-Close State
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Revisting Form's X-Close State
Miscellaneous
Thread ID:
00810892
Message ID:
00810892
Views:
51
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
Imagination is more important than knowledge
Next
Reply
Map
View

Click here to load this message in the networking platform