Purpose |
Change the icon or bitmap displayed in an IMAGE control. The new image is not re-sized to fit the size of the control. | |
Syntax |
CONTROL SET IMAGE hDlg, id&, newimage$ | |
Remarks |
hDlg refers to the dialog that owns the control. id& is the unique control identifier as assigned to the control with the CONTROL ADD IMAGE statement. newimage$ specifies the name
of the bitmap or icon in the resource
file (.PBR). If the image resource uses an
| |
Restrictions |
Images can only be exchanged with images of the same type. That is, if the control is displaying a bitmap then the replacement image must also be a bitmap. If the control is displaying an icon, the replacement image must also be an icon. For best results, icons should be 32x32 pixels.
| |
See also |
Dynamic Dialog Tools, CONTROL ADD IMAGE, CONTROL ADD IMAGEX, CONTROL ADD IMGBUTTON, CONTROL ADD IMGBUTTONX, CONTROL GET CLIENT, CONTROL GET SIZE, CONTROL SET IMAGEX, CONTROL SET IMGBUTTON, CONTROL SET IMGBUTTONX |