%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
refIdReference to displayer (reference variable).
_onoffEnable / disable the possibility to move 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
_visibleEnable / disable a visibility of object (@True = the object is visible, @False = the object is invisible).
Example
 %HI_SetDraggable(_LINE, @TRUE, 2, @TRUE)

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .