Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

...

For purpose of communication with individual graphic objects, there are implemented functions, which look like functions commonly used in the expressions of eval tags or scripts. Function names are created by the prefix %HI_.

For example:

Blok kódu
languageesl
themeRDark
%HI_SetVisible(_Button1, @FALSE)

...

The first example controls the visibility of the graphic object with the reference variable _Button1.
The second example detects current state of the graphic object visibility.

...

Let's call the first set of functions GET functions and the second set SET functions.

The first parameter of GET and SET functions is the value of the

Kotva
refid
refid
reference variable of particular graphic object. It is usually the reference variable (e.g. Button1). When such a function is executed, there is always checked whether the graphic object (connected to the reference variable) exists. If the graphic object doesn't exist, the script interpreter generates the error _ERR_UNKNOWN_REFID, which is standardly processed by the error handler (see the action ON ERROR).

Each function is able to control only some types of graphic objects. If the script interpreter detect an illegal use of a function for specific type of graphic object during the function execution, the interpreter generates the error _ERR_INVALID_REFID_TYPE.


Kotva
hix_funkcie
hix_funkcie
%HIX_  functions

Some %HI_ functions are also available in %HIX_ version. These functions are able to redirect the function executing to another picture (through the first two parameters).

Example: Function %HI_ClosePicture() is available in %HIX_ClosePictur (IN HBJ _picHBJ, IN INT _KInstance). %HI_ClosePicture closes picture in which it has been called. %HIX_ClosePicture closes picture defined by HOBJ (internal object identifier) and instance. Meaning of HOBJ and instance is the same as it is in the case of RPC CALL (parameters objIdent and instanceExpr).

If function %HIX_ is applied, the ESL script must be implemented to picture (it must be Active picture).


Types of functions:

List of graphic object manipulation functions

...

...

...


Kotva
report
report
Report(displayer) manipulation functions:

...

Kotva
graf_schema
graf_schema
Graph and Picture/Componet (displayer) manipulation functions:

...


Kotva
alarmy
alarmy
Alarms manipulation functions:

...

  • Functions, whose name begin with the string %HI_Get... get values and they can be used in expressions.
  • The other functions are so-called Control functions.

...