Loading .4tm topmenu definition files
Topmenu XML definition files can be loaded at runtime.
Loading an XML topmenu file to define a default/global topmenu
To load a .4tm topmenu definition file as default/global topmenu for all
forms, use the ui.Interface.loadTopmenu()
class method:
CALL ui.Interface.loadTopmenu("standard")
The purpose of the default/global topmenu will be displayed in all forms.
Loading a XML topmenu file for the current form/window
To load a .4tm topmenu definition file for a given form, use the
ui.Form.loadTopmenu()
method:DEFINE myform ui.Form
...
CALL myform.loadTopmenu("standard")
The topmenu will be displayed in that form only.
This method is typically used in form initializers.