Macro Scheduler 15

MainMenu - Menu Builder


 

To create a menu for your dialog right click on the dialog in the Dialog Designer and select "Menu Builder".

 

You will be presented with a dialog showing a menu in tree form in a list.  Press F2 to edit a caption.  Right click and select Indent or Unindent to set the menu level (e.g. sub items are indented from the parent item).  Right click to Delete or Insert items.

 

File

 Open

 Save As

 Exit

Edit

 Cut

 Copy

 Paste

Help

 About

 Contents

 

If a menu does not already exist the menu builder will show you an example tree.  Overwrite it/edit it to create your own.

 

If a menu already exists the menu builder will show you the current menu so that you can make modifications.

 

To set individual properties of a menu item, once the menu has been added to the form, use the mouse to select the appropriate menu item and its properties will be displayed in the Property Grid where you can make changes.  See MenuItem Object Properties.

 

Use the AddDialogHandler command to add event subroutines to menu items.  E.g.:

 

AddDialogHandler>Dialog1,MenuItem2,OnClick,DoOpenFile