Datasheet

Figure 1-43: You can use the Visual Studio
simple button editor to change a command’s
button.
The pop-up menu’s Default Style command makes the command use a style that depends on whether it
is in a menu or toolbar. In a menu, the command displays a button and text. In a toolbar, the command
displays only a button. Ironically, a new button’s default style is not Default Style. When you create a
new toolbar or menu command, the button initially displays only text. You need to use the Default Style
command to make the button use this style.
Text Only (Always) makes the command display only text. Text Only (in Menus) makes a command in a
toolbar display a button and a command in a menu display text.
Image and Text makes the command display both an icon and text whether it is in a toolbar or a menu.
Finally, the Begin a Group command makes the IDE insert a group separator before the button.
The Customize dialog box’s Rearrange Commands button displays a dialog that lets you rearrange the
commands in an existing menu or toolbar, and change the appearance of those commands. It’s usually
easier to just click and drag the commands on its menu or toolbar, however.
The Customize dialog box’s Keyboard button displays the dialog box shown in Figure 1-44. You can use
this display to view and edit keyboard shortcuts.
Enter words in the Show commands containing text box to filter the commands. When you click on a
command, the dialog box displays any keyboard shortcuts associated with it.
To make a new shortcut, click the Press shortcut key(s) text box and press the keys that you want to use
as a shortcut. The Shortcut currently used by drop-down list displays any commands that already use
the shortcut you entered. To make the assignment, click the Assign button.
44
Part I: Getting Started
37055c016.qxd 4/8/07 12:46 PM Page 44