Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a button for which I have assigned hot key by giving '&' symbol in rc file. but when I press ALT+R it's not working.

Thanks in advance.
Posted
Updated 30-Apr-11 3:48am
v2

1. Is the button in a dialog? There are issues with dialog bar buttons.
2. Do you have an 'r' following the ampersand?
3. Do you have an entry for Alt+r in an accelerator table which will be in conflict?
4. Is the 'r' underlined when you press Alt?
Edit:
5. Check for duplicates using Check Mnemonics command from the Format menu.
 
Share this answer
 
v2
Comments
pujar 28-Apr-11 4:46am    
hi niklas, thanks for reply..

1. yes button is in dialog.
2. yup
3. i don have any entry for alr+r in acc table. how can i add it???
4. yes its underlined.
5. thr r no duplicates..
pujar 28-Apr-11 5:11am    
hey thank u.... i got solution... just by adding alt+r entry into acc table i was able to solve my prob...
Joan M 30-Apr-11 3:14am    
Nice answer... 5
Well, if the button is in dialog box, there is no need to put in accelerator table. Alt+(Key) is standard technique, and would work anyways.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900