The methods described in this section are for creating dialog menus.
>>-aUserDialog~CreateMenu(--+-------+--)----------------------->< +-count-+
This method initializes the creation of a menu. When you have finished adding menu items, call SetMenu to combine the menu with the dialog.
There is only one argument:
Maximum number of menu items that can be added
>>-aUserDialog~AddPopupMenu(--name--,--"--options--"--)--------><
This method adds a popup menu to the menu.
The last popup menu must have the option "END" specified.
The arguments are:
The name of the popup menu
GRAYED DISABLED END
>>-aUserDialog~AddMenuItem(--name--,--id--,--"--options--"--,--msgToRaise--)-><
This method adds a new menu item after the last added item.
The last menu item in a popup menu must have the option "END" specified.
The arguments are:
The name of the menu item. The name can include &.
The ID of the menu item
GRAYED DISABLED END CHECKED
Method to be called when the menu item is selected. See ConnectMenuItem.
>>-aUserDialog~AddMenuSeparator--------------------------------><
This method adds a menu separator to the menu after the last added item.
>>-aUserDialog~SetMenu-----------------------------------------><
This method adds the menu that was created or loaded for the current dialog to the dialog window. Note that the menu needs additional space and therefore displaces the rest of the dialog items.
>>-aUserDialog~LoadMenu(--resfile--,--menuid--------------------> >--+-------------------------------------+--)------------------>< +-,--+----------------+--+----------+-+ +-"CONNECTITEMS"-+ +-,--count-+
This method loads a menu resource out of a resource script.
To combine the menu with the dialog, you must call SetMenu.
The arguments are:
The name of a resource script.
The ID of the menu resource.
The menu items are automatically connected to methods named after the name of the menu item. See LoadItems for further details.
The maximum number of menu items that can be loaded.