%HI_SetDraggable function


Function

Function %HI_SetDraggable enables/disables a possibility to move particular object in the picture.

Declaration
%HI_SetDraggable(
   INT in refId,
   BOOL in _onoff,
   INT in _moveType,
   BOOL in _visible
 )
Parameters
refIdReference to displayer (reference variable).
_onoffEnables/disables the possibility to move an object.
_moveTypeIf the parameter is:
  • 0 - it allows moving only on X-axis
  • 1 - it allows moving only on Y-axis
  • 2 - it allows moving on X-axis and Y-axis
  • other number - the function will be ignored
_visibleEnables/disables the visibility of an object (@True = the object is visible, @False = the object is invisible).
Example
 %HI_SetDraggable(_LINE, @TRUE, 2, @TRUE)
Napíšte komentár