Rapid-Q Documentation by William Yu (c)1999-2000 | Appendix A: QMAINMENU

# QMAINMENU Component

  QMainmenu implements a container for your menu items. Use it to add a drop-down main menu to a form.
  QMainMenu Properties

  Field | Type | R/W | Default | Support

  Handle | INTEGER | R |  | W
  Parent | QFORM | W |  | WXG

  QMainMenu Methods

  Method | Type | Description | Params | Support

  AddItems | SUBI | Add items to mainmenu | QMENUITEMs, Infinite | WXG
  DelIndex | SUB (index AS LONG) | Delete items, by index, from menu | 1 | W
  DelItems | SUBI | Delete items from menu | QMENUITEMs, Infinite | W
  Insert | SUB (I%, Item AS QMENUITEM) | Insert an item | 2 | W

  QMainMenu Examples

        DIM Form AS QForm
        DIM MainMenu AS QMainMenu
        DIM Item1 AS QMenuItem

        Item1.Caption = "&File"
        MainMenu.AddItems Item1
        MainMenu.Parent = Form

        Form.ShowModal

  Prev Component | Contents | Next Component