HI_SetDraggable

HI_SetDraggable

%HI_SetDraggable function


Function

Function %HI_SetDraggable enable / disable a possibility to move particular object in picture.

Declaration

%HI_SetDraggable( INT in refId, BOOL in _onoff, INT in _moveType, BOOL in _visible )

Parameters

refId

Reference to displayer (reference variable).

_onoff

Enable / disable the possibility to move 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

Enable / disable a visibility of object (@True = the object is visible, @False = the object is invisible).

Example

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