Accelerator keys in vb 
Author Message
 Accelerator keys in vb

Does anybody know how I allow individual controls to respond to the CTRL-C,
CTRL-V, CTRL-X  actions and implement the standard accelerator keys?

When I add a menu item with a shortcut, the menu click is executed and the
standard control response is bypassed.

Eddie



Tue, 28 Dec 2004 00:35:08 GMT  
 Accelerator keys in vb
Hi,

You have to create your own "edit" handlers, such as using
Screen.ActiveControl.
Or pass the messages onto the Controls via API.

eg:

    If TypeOf Screen.ActiveControl Is ComboBox Or TypeOf
Screen.ActiveControl Is TextBox Then
      Call SendMessageLong(Screen.ActiveControl.hwnd, WM_CUT, 0&, 0&)
    End If

David
lilchips.com


Quote:
> Does anybody know how I allow individual controls to respond to the
CTRL-C,
> CTRL-V, CTRL-X  actions and implement the standard accelerator keys?

> When I add a menu item with a shortcut, the menu click is executed and the
> standard control response is bypassed.

> Eddie



Tue, 28 Dec 2004 02:33:23 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Accelerator keys in VB.NET

2. Word 2000, CommandBars and Accelerator Keys.

3. Accelerator Key Display in Custom Menu

4. Accelerator key problem

5. Accelerator key takes 2 tries to open combobox

6. UserForm, CommandButton, Accelerator Key

7. User Forms, Command Buttons, Accelerator Keys

8. Accelerator keys won't display on form load

9. Accelerator keys on toolbar?

10. Accelerator Keys not recognized

11. Accelerator Keys in SSTab control

12. Accelerator Keys in VBS?

 

 
Powered by phpBB® Forum Software