Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timeout when menu selected
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00537799
Message ID:
00539300
Vues:
9
Hi!

Well, as I said you can try to define popup with shortcut and keep it in the memory without activating anything. However, I don't know if shortcut keys will work when main menu activated in such case. Just try this idea.

>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?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform