| Rapid-Q Documentation by William Yu (c)1999-2000 | Appendix A: QMENUITEM |
|
|
|
| Field | Type | R/W | Default | Support |
|
|
|
|
|
|
| Caption | STRING | RW | WXG | |
| Caption specifies the text of the menu item. | ||||
| Checked | INTEGER | RW | W | |
| Checked specifies whether a check mark should appear beside the caption. | ||||
| Command | INTEGER | R | W | |
| Command is the Windows command ID associated with the menu item. | ||||
| Count | INTEGER | R | W | |
| Count is the number of subitems of the menu item. | ||||
| Enabled | INTEGER | RW | True | W |
| Handle | INTEGER | R | W | |
| Hint | STRING | RW | W | |
| MenuIndex | INTEGER | RW | W | |
| MenuIndex is index of the menu item within its parent menu. | ||||
| RadioItem | INTEGER | RW | False | W |
| RadioItem specifies whether the menu item is mutually exclusive with other menu items in its group. | ||||
| ShortCut | STRING | RW | W | |
| ShortCut specifies the key combination users can type to quickly access the menu item. | ||||
| Tag | INTEGER | RW | WXG | |
| Visible | INTEGER | RW | True | W |
| Visible determines whether the menu item should be displayed. | ||||
| Method | Type | Description | Params | Support |
|
|
|
|
|
|
| AddItems | SUBI | Add Subitems to MenuItem | 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 |
| Event | Type | Occurs when... | Params | Support |
|
|
|
|
|
|
| OnClick | VOID | User selects item | 0 | WXG |
DIM Form AS QForm DIM MainMenu AS QMainMenu DIM Item1 AS QMenuItem MainMenu.Parent = Form Item1.Caption = "&File" MainMenu.AddItems Item1 Form.ShowModal