%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
_refIdReference to a graphic object (reference variable).
bmpBitmap.
_forCtrlState   1 - enabled, it applies also for the "disabled" status if no bitmap is defined for it
  2 - disabled - it will not be used if no bitmap is set for the "enabled" status
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)
Napíšte komentár