Accelerator key problem 
Author Message
 Accelerator key problem

I'm trying to make a user form that will display a number of command
buttons, each of which has an accelerator key, and respond with different
actions depending on the key pressed.  (Basically, I'm recreating the old
WordStar two-key navigation sequences).  But I'm having a problem with the
accelerator keys.  I want the dialog to display, and commands to be executed
when the user presses a plain key.  I get the dialog to display, but the
accelerator keys only work if you use them as alt-key combinations.  So, I
want Command Button 1 to fire if the user presses "u" when the dialog box is
on screen, but it will only fire when the user presses Alt+u.  How do I get
the buttons to work with plain keys rather than Alt-combinations?  I was
able to do this just fine in WordBasic.

Mark



Wed, 05 Jan 2005 23:36:01 GMT  
 Accelerator key problem

Please see http://www.*-*-*.com/


Quote:
>I'm trying to make a user form that will display a number of command
>buttons, each of which has an accelerator key, and respond with different
>actions depending on the key pressed.  (Basically, I'm recreating the old
>WordStar two-key navigation sequences).  But I'm having a problem with the
>accelerator keys.  I want the dialog to display, and commands to be executed
>when the user presses a plain key.  I get the dialog to display, but the
>accelerator keys only work if you use them as alt-key combinations.  So, I
>want Command Button 1 to fire if the user presses "u" when the dialog box is
>on screen, but it will only fire when the user presses Alt+u.  How do I get
>the buttons to work with plain keys rather than Alt-combinations?  I was
>able to do this just fine in WordBasic.

>Mark

Steve Hudson - Word Heretic, Sydney, Australia
{*filter*} teacher, trainer, tutor, writer, developer

You agree by writing to me personally that any material can be reused publicly unless you explicitly disclaim it. (For List and blog use.)


Sat, 22 Jan 2005 07:55:26 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Word 2000, CommandBars and Accelerator Keys.

2. Accelerator Key Display in Custom Menu

3. Accelerator key takes 2 tries to open combobox

4. UserForm, CommandButton, Accelerator Key

5. User Forms, Command Buttons, Accelerator Keys

6. Accelerator keys in VB.NET

7. Accelerator keys won't display on form load

8. Accelerator keys on toolbar?

9. Accelerator Keys not recognized

10. Accelerator Keys in SSTab control

11. Accelerator Keys in VBS?

12. Accelerator keys in vb

 

 
Powered by phpBB® Forum Software