PML Application Control Object
- Last UpdatedNov 14, 2022
- 1 minute read
The PML Add-in control object is a user-defined object type used to configure and control an add-in. A Global variable of the same name is created automatically by the system at module startup.
For example: !!myAddinController = object MYADDINCONTROLLER().
Methods on this object can be executed at ModuleStartup and at the other application events.
For example:
# Description: Add-in application definition
# --------------------------------------------------------
name: MYADDIN
CONTROL: MYADDINCONTROL
title: MYADDIN
showOnMenu: TRUE
modulestartup: !!MYADDINCONTROL.moduleStartup()
startUp: !!MYADDINCONTROL.startup()
SwitchModify: EQUI :!!MYADDINCONTROL.startup('EQUI')
Note:
It is important to avoid intensive and time consuming operations in the control object
constructor or in the modulestartup callback because this could cause performance
problems when the module starts.
Note:
Make sure that your defined control object has been added to the PML index to avoid
problems when the module starts.