PictureButton
PictureButtons are identical to CommandButtons in their functionality.
The only difference is that you can specify a picture to display
on the button. The picture can be a bitmap (BMP) file, a GIF or
animated GIF file, a JPEG file, a PNG file, a run-length
encoded (RLE) file, or an Aldus–style Windows metafile
(WMF).
You can choose to display one picture if the button is enabled
and a different picture if the button is disabled.
Use these controls when you want to be able to represent the
purpose of a button by using a picture instead of text.
To specify a picture:
-
Select the PictureButton to display its
properties in the Properties view. -
On the General tab page, enter the name of the
image file you want to display when the button is enabled, or use
the Browse button and choose a file. -
Enter the name of the image file you want to display
when the button is disabled, or use the Browse Disabled button and
choose a file.If the PictureButton is defined as initially enabled, the
enabled picture displays in the Layout view. If the PictureButton
is defined as initially disabled, the disabled picture displays
in the Layout view.
To specify button text alignment:
-
Select the PictureButton to display its
properties in the Properties view. -
On the General tab page, enter the text for the
PictureButton in the Text box. -
Use the HTextAlign and VTextAlign lists to choose
how you want to display the button text.