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.

StepsTo specify a picture:

  1. Select the PictureButton to display its properties in the Properties view.

  2. 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.

  3. 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.

StepsTo specify button text alignment:

  1. Select the PictureButton to display its properties in the Properties view.

  2. On the General tab page, enter the text for the PictureButton in the Text box.

  3. Use the HTextAlign and VTextAlign lists to choose how you want to display the button text.