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?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.