Show all mnemonics in Visual Studio .rc dialog designer for native C++ code

“Normally, keyboard users move the input focus from one control to another in a dialog box with the TAB and ARROW keys. However, you can define an access key (a mnemonic or easy-to-remember name) that allows users to choose a control by pressing a single key.”

For WPF dialogs you add underscore (_) in front of the letter you want as the access key for a control and you can display all mnemonics in the designer (an underline appears in the displayed caption to indicate the access key) pressing the Alt key:

WPF dialog designer in Visual Studio 2013

WPF dialog designer in Visual Studio 2013

For Windows Forms dialogs you add ampersand (&) in front of the letter you want as the access key and the designer always shows all assigned mnemonics:

Windows Forms dialog designer in Visual Studio 2013

Windows Forms dialog designer in Visual Studio 2013

For native C++ .rc dialogs you add ampersand (&), but there is no way to show all assigned mnemonics. Only the Check Mnemonics command is available to check for duplicate access keys:

Check Mnemonics command for native dialog designer in Visual Studio 2013

Check Mnemonics command for native dialog designer in Visual Studio 2013

The Show mnemonics command for Visual Commander displays all mnemonics for a native dialog in Visual Studio 2010/2012/2013 designer:

All mnemonics displayed for native dialog designer in Visual Studio 2013

All mnemonics displayed for native dialog designer in Visual Studio 2013

You can download the Show mnemonics command as a .vcmd file and quickly import to Visual Commander. (Thanks to Sven Ritter for the original idea of activating mnemonics with a WM_UPDATEUISTATE message.)

This entry was posted in Vlasov Studio tools and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s