Adding pictures to a DataWindow object

You can place pictures, such as your company logo, in a DataWindow object to enhance its appearance. If you place a picture in the header, summary, or footer band of the DataWindow object, the picture displays each time the contents of that band displays. If you place the picture in the detail band of the DataWindow object, it displays in each row.

StepsTo place a picture in a DataWindow object:

  1. Select Insert>Control>Picture from the menu bar.

  2. Click where you want the picture to display.

    The Select Picture dialog box displays.

  3. Use the Browse button to find the file, or enter a file name in the File Name box. Then click Open.

    The picture can be a bitmap (BMP), Graphics Interchange Format (GIF), or Joint Photographic Experts Group (JPEG) file.

  4. Display the pop-up menu and select Original Size to display the bitmap in its original size.

    You can use the mouse to change the size of the bitmap in the DataWindow painter.

  5. Click the Invert Image check box on the General page of the Properties view to display the picture with its colors inverted.

Tips for using pictures

To display a different picture for each row of data, retrieve a column containing picture file names from the database.

For more information, see “Specifying additional properties for character columns”.

To compute a picture name during execution, use the Bitmap function in the expression defining a computed field. If you change the bitmap in the Picture control in a DataWindow object, you need to reset the original size property. The property automatically reverts to the default setting when you change the bitmap.

To use a picture to indicate that a row has focus during execution, use the SetRowFocusIndicator function.