Adding Menus to Forms

Creating a Menu

Menus allow users to select actions from a list. It is simple to add a menu to a form in ATEasy.

  1. Create your form.

  2. Click on the Menu item Menu Button in the Controls toolbar.

  3. Drag in the form client area.

  4. The menu will appear in the top border of the form, with one item visible, the heading, <New Item>.

  5. Set the properties of the Menu Bar and rename from menu1 to mnuBar:

  6. Now click on <NewItem>, by default the menu item is a Popup type and a Menu item is display below the popup:. There are three types of menu items:

    Menu Form With Drop-Down New Item

  7. Set the popup menu item Name to nuFile. We use mnu as a prefix for menu items objects/ Set the Caption to '&File' (the & is used at run time enabling to select the menu using Alt+F key combination) as shown here from its properties window:



    There are three types of Menu Items as shown when you drop the Type combo box:

  8. Add a menu item to the File Popup. Click on the New Item below File and open the properties and set the properties as follows:

  9. The menu should look like this:

  10. Next  step is the implement OnClick() events  to menu items is described here: Programming Menu Events