Datasheet

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 to display the simple button editor shown in Figure 1-43. When you click a
pixel that is not the selected foreground color (black in Figure 1-43), the editor changes the pixel to the
foreground color. When you hold the mouse down and drag it, the editor gives the pixels you cross that
color, too. When you click a pixel that is already the foreground color, the editor erases the pixel and any
others that you drag over.
When 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.
Figure 1-42: Right-click the menu and toolbar commands to change their appearances.
43
Chapter 1: IDE
37055c016.qxd 4/8/07 12:46 PM Page 43