Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timeout when menu selected
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00537799
Message ID:
00538983
Views:
9
There has to be another way than that. Wouldn't the user wonder what the extra menu choice is for that does nothing?

>Hi!
>
>Well, I remember KEYBOARD was used to solve this... Got it - make a menu item with some shortcut kes that does nothing (or does something simple). Than KEYBOARD "{shoortcutkeys}". Even when menu is active, pressing shortcut keys for menu will run that item and close any menu activation. The menu keys shortcut definition also could be in the shortcut menu hidden for user, but just defined in the memory.
>
>HTH.
>
>>Hi Vlad,
>>
>>Thanx, that got me part way there. If I'm on a top level pad of the menu this works fine but if I'm on a pad of a submenu, this only closes the submenu. I tried:
>>
>>KEYBOARD "{ESC}"
>>KEYBOARD "{ESC}"
>>
>>This didn't work either. It was like VFP ignored the second one.
>>
>>I also tried, KEYBOARD '{F10}' PLAIN CLEAR, but this didn't work either. Any other ideas?
>>
>>>Hi!
>>>
>>>Try: Keyboard "{ESC}"
>>>
>>>>I use timers in my main prg and forms to time them out after a certain amount of mouse and keyboard activity. This seems to work fine except when the menu is 'active'.
>>>>
>>>>For example, if I start my app and just hit {ALT} to be in the menu, the timer's Timer() event will fire (which quits the app) but the app doesn't actually shut down until I 'deactivate' the menu (i.e. press {ALT} again)
>>>>
>>>>Any ideas?
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform