Macros can be executed by an event of a component. Therefor the macro can be selected in the Properties dialog in the property page . Additional there can be parameters assigned to the macro (s. fig. 95 ).

Fig. 95: Properties Page Event at SLabel
The column in the Properties dialog defines the event that executes the macro or the command. After selecting the event, two buttons are displayed (s. Abb. 192). The left button creates a new macro, the right button allows to selecttionof the wanted macro or command (s. fig. 96 ).

Fig. 96: Selection of Macro or Command
The left side of the Macro selection window shows the self created macros or commands of the project. The right row contains the system commands. The selection can be finished by doubleclick on a macro or command.
Parameter values can be assigned to every event. For this the properties with the name suffix Parameter in the following row can be used. After selecting the parameter property a button will be displayed to open the Parameter selection dialog (s. fig. 97 ).
The Paremeter Selection dialog displays all available paramaters for the selected macro or command. The left column contains the reference numbers. The order of the reference numbers are assigned in macros by its reference values (#0, #1..) and in command by its natural order. The order of the parameters in macros are ascending by default. The order can be changed using the button.
If there is a non referenced value in a macro, this gets the reference value -1 and is not editable. The value is this one which is defined in the macro itself.
Note: When the selected row of an event contain a macro, the Macro Editor can be reached directly by pressing the key.