Member attributes: ApplicationClass

This attribute determines the name of the application class to use when generating code for a particular profile member.

Syntax

unit‑name::class‑name

Discussion

The attribute ApplicationClass contains the full name of the class representing the GUI application main component. The application component serves as the root of your entire application - accordingly all other GUI components will be enclosed (directly or indirectly) inside the application component. As such the application component is also called the 'root object'.

The full name is composed of two identifiers: the name of the unit containing the application class definition and the name of the class itself, both separated by :: (double colon). The specified class must be a descendant of the Mosaic class Core::Root.

The value of this attribute can be evaluated within your implementation by using the built-in macro $ApplicationClass.

Modify the attribute

To inspect or modify the value of an ApplicationClass attribute, select first the affected profile member. Thereupon, the attribute is listed in the middle area of Inspector. Please note the available assistant you can activate by clicking on the button right to the attribute. The assistant lists all appropriate application classes: