Datasheet

If you right-click a command in a menu or toolbar while the Customize dialog is open, Visual Studio dis-
plays the pop-up menu shown in Figure 1-44. Click the Name text box and enter a new name to change
the text displayed in the menu or toolbar.
Figure 1-44: Right-click menu and
toolbar commands to change
their appearances.
Use the Copy Button Image command to copy the button’s image to the clipboard. Use Paste Button
Image to paste a copied image onto a button. Usually you will use these two commands to copy the
image from an existing button to one you are adding. However, the Paste Button Image command will
paste any graphical image from the clipboard. For example, you can open a bitmap using Microsoft
Paint, press Ctrl-A to select the whole image, and press Ctrl-C to copy it to the clipboard. Then you can
use the Paste Button Image command to paste the image into a button. Note that the buttons are 16 by
16 pixels. If the image you copy is larger, Visual Studio shrinks it to fit.
Select the Reset Button Image command to restore the button to its default image. For a command tied to
a macro, this erases the image.
Select the Edit button image command to display the simple button editor shown in Figure 1-45. If you
click on a pixel that is not the selected foreground color (black in Figure 1-45), the editor changes the
pixel to the foreground color. If you hold the mouse down and drag it, the editor gives the pixels you
cross that color, too. If you click on a pixel that is already the foreground color, the editor erases the pixel
and any others that you drag over.
If you click the Change Button Image command, a menu containing several dozen standard images pops
out. Click one to assign that image to the button. A useful technique is to start with one of these images
and then edit it to customize it for your command.
42
Chapter 1
571982 ch01_2.qxd 1/19/06 1:16 PM Page 42