HI_SetDraggable

HI_SetDraggable

%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

refId

Reference to displayer (reference variable).

_onoff

Enables/disables the possibility to move an object.

_moveType

If 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

_visible

Enables/disables the visibility of an object (@True = the object is visible, @False = the object is invisible).

Example

%HI_SetDraggable(_LINE, @TRUE, 2, @TRUE)