Skip to main content

Use Components

How to use component

To insert a component into the tab, you must utilize one section at a time, using the following syntax:

::G.SEZ Pos(1)
::G.SUB.BOX Tit="My first box"

It is essential that the Tit attribute is always included. If you do not wish to assign a title to your component, you can set it to Tit="*NONE".

Each component can have attributes that provide different behaviors. For instance, you can assign a layout or specify which data you would like to display or hide. To achieve this, use the following syntax:

G.SET.<name-component> <name-attribute>="<value>"

In this example we set a standard layout to our box:

::G.SEZ Pos(1)
::G.SUB.BOX Tit="*NONE"
::G.SET.BOX LayoutNbr="2"

How to retrieve data

A component cannot exist without data, right? For some components, it is sufficient to assign data object directly. ::D.OGG presents a defined object (TYPE, PARAMETER, and CODE) or one of its attributes with a specific value.

::D.OGG T(<type>) P(<parameter>) K(<code>)

But for some components, such as a label, a simple string is enough.

::G.SEZ Pos(1)
::G.SUB.LAB Tit="*NONE"
::D.OGG D(Hello World!)

However, others require more complex structures, and in this case, the FUN comes to our aid (you can find an explanation of what a FUN is here).

::G.SEZ Pos(1)
::G.SUB.BOX Tit="*NONE"
::D.FUN.STD <FUN syntax>