HI_SetWinCtrlBmp
%HI_SetWinCtrlBmp function
Function
Function changes bitmap in windows control - Push button.
Declaration
%HI_SetWinCtrlBmp(
INT in _refId,
HBJ in bmp,
INT in _forCtrlState
)Parameters
_refId | Reference to a graphic object (reference variable). |
bmp | Bitmap. |
_forCtrlState | 1 - enabled, it applies also for the "disabled" status if no bitmap is defined for it |
Description
Function changes bitmap in windows control Push button from script. The bitmap, which is defined for the "enabled" status, is also used for the "disabled" status providing that no bitmap is set for the "disabled" status.
The bitmap, defined for the "disabled" status, will not be used, if no bitmap is defined for the "enabled" status.
If there is entered a zero ID instead of a reference to the bitmap, the bitmap will be removed from the push button.
The following applies for statuses:
1 - enabled - a text will be displayed instead of bitmap,
2 - disabled - bitmap from "enabled" status will be used for "disabled" status.
Example
%HI_SetWinCtrlBmp(_bmp, otvor.bmp\HBJ,1)