Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I intercept Ctrl+A in a form?
Message
From
09/11/2001 11:08:36
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00579379
Message ID:
00579679
Views:
33
>>>My application is running under our custom menu, which already has Item (Select All) with Ctrl+A hotkey. So, I don't understand, what should I do.
>>
>>In the Select All menu item, instead of calling what you'd normally would, call method of the form that selects all the items in your list. This could be a nice use for reusable hooks.
>
>Mike,
>
>Sorry again for being such a dumb, but the main menu is not from my application, it's from top-level application and it uses standard windows items, e.g. it's standard Edit menu with all options. How can my form temporary substitute this menu item with my item and restore it back, when form finishes?
>
>As I said, it seems too complicated and not worth the whole original idea...

In that case you should disable that piece of menu in listbox's .gotfocus and restore it in the .lostfocus, which seems like a major hassle. Why not just use the asterisk for the key, plus for select single and minus for deselect single? It's the standard keys used in several clones of Norton Commander (don't remember the NC itself because the clones were far better).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform