Datasheet
Figure 1-45: You can use Visual Studio’s 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’s Rearrange Commands button displays a dialog that lets you rearrange the com-
mands 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’s Keyboard button displays the dialog shown in Figure 1-46. You can use this dis-
play 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 displays any keyboard shortcuts associated with it.
To make a new shortcut, click on 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 lists any commands that already use the
shortcut you entered. To make the assignment, click the Assign button.
43
IDE
571982 ch01_2.qxd 1/19/06 1:16 PM Page 43