Topmenus Topmenus define typical pull-down menus that appear at the top of application forms. Understanding topmenus This is an introduction to topmenu definitions. Defining the topmenu in a form file Topmenus can be defined in the form specification file within the TOPMENU section. Syntax of a topmenu file (.4tm) A .4tm topmenu file is an XML file that holds a tree of elements defining a topmenu structure. Loading a topmenu from an XML file Topmenu XML definition files can be loaded at runtime. Loading a default topmenu from an XML file To load a default topmenu from an XML definition file, use the utility method provided by the ui.Interface built-in class. Creating the topmenu dynamically Topmenus can be created at runtime by creating the corresponding XML representation in the AUI tree. Topmenus on mobile devices Topmenus can be used to implement a general options menu in mobile apps. Examples Topmenu usage examples.