Displaying images
To display a static image, call the following subroutine from your application:
CALL PIX.GUI.LOAD.IMAGE (GUI.APP.NAME, CONTROL.DETAILS, STRING)
Where:
CONTROL.DETAILS = Control ID, IMAGE, X, Y, W, H, Label, {Key1,...Keyn}
Where:
Control ID |
The unique name for the image. |
IMAGE |
Text literal IMAGE. |
X |
The X co-ordinate of the left of the image. |
Y |
The Y co-ordinate of the top of the image. |
W |
Width of the image (characters). |
H |
Height of the image (characters) |
Label |
Textual label associated with that image. |
Key1...Keyn |
Additional parameters if required, in any order - see below. |
The following extra keyword parameters are available:
HIDE |
SHOW * |
CLIPPED |
SCALED * |
PUSH |
FRAME |
PUSHEDIN |
PUSHEDOUT |
SHADOWED |
NONE * |
LABELLED |
BITMAP * |
ICON |
FILEID |
LABELPOS |
FILE |
ID |
SUBS |
FILETYPE |
TILE |
Alternatively, you can use the PIX.GUI.CONTROL.LOAD subroutine, see Loading all types of controls for details.
LOAD.IMAGE Program Example
071 CALL PIX.GUI.LOAD.IMAGE (“”,”LOGO,IMAGE,0,0,15,4,\bitmaps\easy\easyacc.bmp”,””)