Loading...
 

Syntax - Window objects

Syntax - Window objects

Windows and window objects are created by instructions of the form:

Widget(objectname~aliasName, flags, x, y, w, h, static text, bitmap)

described.

"Widget" stands for one of the identifiers:

Window objects have a parent-child relationship with each other - in the script this is expressed by including child objects following the parent object in { and }(example). Action lists follow immediately - before a block of child objects - the window object to which they belong(example).

The name of a window object

Widget(objectName~aliasName, ...)

is required if a statement is to refer to this window object, whereby the window object must be uniquely defined by a tuple of the name of the parent window and its own name. Furthermore, a name of the form

Class::access expression

establishes a relationship between the window object and objects of the model class mentioned, i.e. the data exchange in the direction of model - surface and vice versa is described. Access expression is in the simplest case the name of a data member, but you can also navigate through the objects. If an instruction refers to the window object, only the access expression (i.e. the substring after the scope operator ::) is used as name. Optionally, a further name (aliasName) can be assigned, which can be used in the corresponding statements just like the object name. For long access expressions, this allows a more convenient spelling, and ambiguities can be resolved with the alias name (e.g. if two instances of the same class are to be displayed on one window).