Images


The image object displays a bitmapped graphic on the window of the current context and is typically used to display a background bitmap. The bitmap will not obscure any controls currently visible.

Images use the DRAWING coordinate system, while controls use the CONTROL coordinate system. To draw an image and have it appear in a particular position relative to controls (while using the 'SEMICHAR' mnemonic) the most reliable method is to place an invisible group box in the desired position. By switching to pixels briefly (with the 'PIXELS' mnemonic) and using CTRL(chan,id,0) to retrieve the group box's bounding rectangle in pixels, the image can then be placed at that position. Switch back to 'SEMICHARS' before placing additional controls.

Creating

Mnemonic

Description

'IMAGE'

Draw Bitmapped Image.

Manipulating

Mnemonic

Description

'TRACK'

Toggle Tracking On/Off (Setting this to 0 prevents the image from being resized when the window is resized.