Image Elements
The following lists the mandatory properties for image elements:
Image control-idx y width height
Property |
Description |
image |
Identifies the control as an image element. |
control-id |
Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window. |
x |
Horizontal position of the upper-left corner of the control in current units. |
y |
Vertical position of the upper-left corner of the control in current units. |
width |
Width of the control in current units. |
height |
Height of the control in current units. |
The Resource Properties Index identifies and describes the optional properties for this control.
Backgroundcolor
Clientedge
Disabled
Font
Foregroundcolor
Grabpalette
Group
Image
Imagefile
Invisible
Longcue
Name
Raisededge
Shortcue
Example
The following example contains a window with three image elements; the first contains only the mandatory definitions, and the second and third contain optional settings.
Version "3.0"
Window 1 "Control Window" 0 0 200 100
Begin
Image 1 10 10 50 25
Image 2 50 10 50 25 Begin
Imagefile "\\images\\tool.bmp"
Invisible
End
Image 3 50 10 50 25 Begin
Image "872146213094791238648621386482136482718"
Invisible
End
End