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 content 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 must be a bitmap (BMP), runlength-encoded (RLE), Windows metafile (WMF), Graphics Interchange Format (GIF), or Joint Photographic Experts Group (JPEG) file.

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

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

  5. Select the Invert Image check box on the Appearance page in 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 at runtime, use the Bitmap function in the expression defining a computed field. If you change the image 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 image.

To use a picture to indicate that a row has focus at runtime, use the SetRowFocusIndicator function.