HI_GetPosX

HI_GetPosX

%HI_GetPosX, %HI_SetPosX functions


Function

The function %HI_SetPosX sets the X-position of the graphic object in the picture (Control function).

The function %HI_GetPosX detects the X-position of the graphic object in the picture.

Declaration

%HI_SetPosX( INT in refId, INT in x, BOOL in where := @FALSE ) INT %HI_GetPosX( INT in refId, BOOL in where := @FALSE )

Parameters

refId

Reference to the graphic object (reference variable).

x

X-position of the graphic object in the picture (the palette Object properties- the tab Size).

where

Optional parameter. Specifies whether to read or set the value before or after the calculation of the Layout manager. Please see the note below. 

Note

The behaviour of functions is affected by setting of the Script functions and it is described in the following table.

picture parameter "Script functions"

called function

where=@FALSE

where=@TRUE

Zoom

%HI_Set*

original

original

%HI_Get*

original

original

Layout

%HI_Set*

original

actual

%HI_Get*

actual

actual

StdLayout

%HI_Set*

actual

original

%HI_Get*

actual

original

  • original - the coordinate represents the initial value which is calculated for displaying according to definition of the Layout manager

  • actual - the coordinate represents the real position in the screen after recalculation according to the definition of the Layout manager