Translation:

The object can have, in addition to 3 palettes, up to 5 functions. In most cases, their names correspond to functions from the script. For example: PosX = %HI_SetPosX.

The functions take a single parameter: a D2000 object or a local variable that can be controlled by an expression.

Meaning: This solution does not burden communication with the script—it does not fill the queue of HI messages coming from the script and the kernel. As a result, it places a significantly lower load on the HI process.

Change order within the pallet type

Copy connected value between palettes

Implemented functions:

EnableThe Enable function disables/enables access to the graphical object.%HI_SetEnable
VisibleThe Visible function hides/shows the graphical object.%HI_SetVisible
PosXThe PosX function sets the X coordinate of the graphical object.%HI_SetPosX
PosYThe PosY function sets the Y coordinate of the graphical object.%HI_SetPosY
PosX+The PosX+ function shifts (offsets) the X coordinate of the graphical object.%HI_SetPosX (%HI_GetPosX+hodnota)
PosY+The PosY+ function shifts (offsets) the Y coordinate of the graphical object.%HI_SetPosY(%HI_GetPosY+hodnota)
SizeXThe SizeX function sets the width of the graphical object%HI_SetSizeX
SizeYThe SizeY function sets the height of the graphical object%HI_SetSizeY
DistXThe DistX function sets the distance from one point of the object to the next point along the X-axis.%HI_SetDistX
DistYThe DistY function sets the distance from one point of the object to the next point along the Y-axis.%HI_SetDistY
LineWidthThe LineWidth function sets the line thickness.%HI_SetLineWidth
TextThe SetText function sets the text of the graphical object.%HI_SetText
SetLineTerminatorThe SetLineTerminator function sets the line termination style, including the termination of individual lines in a multi-line object.%HI_SetLineTerminator
ForeColorThe ForeColor function sets the foreground color of the graphical object.%HI_SetForeColor
BackColorThe BackColor function sets the background color of the graphical object.%HI_SetBackColor
BackColor2The BackColor2 function sets the secondary gradient color of the graphical object.%HI_SetBackColor2
TextColorThe TextColor function sets the text color of the graphical object.%HI_SetTextColor

Príklad:

Here is an example of a simple clock in a scheme with its center at **[100,100]**, implemented **without using a script**—the highlighted point moves simultaneously with the second hand.

 

Napíšte komentár