| Index | Parent | Menu classes |
Menustrip, Menu and Menuitem are used to create menus for applications windows and context-menus for any object.
A Menustrip may be used as value for Menustrip attribute of applications and windows and as context-menu for any object.
A Menu can only be added to a Menustrip.
A Menuitem named MI can only be added to:
Once a Menustrip was used as strip for an application or a window it can NOT be removed or disposed.
Once a Menustrip was used as context-menu for an object it can NOT be removed or disposed. To remove/dispose it you must set another Menustrip as context-menu for that object and THEN remove/dispose it.
Of course all the above is handled by RxMUI: if an operation is not possible, RxMUI just returns an error code.
A complete menu strip is created with:
strip.0="MPROJECT"
mproject.Title="Project"
mproject.0=menuitem("MSERVERS","Server...","S")
mproject.1=menuitem("","BAR")
mproject.2=menuitem("MLOG","Active Log","","CHEKIT TOGGLE")
mproject.3=menuitem("","BAR")
mproject.4=menuitem("MHIDE","Hide","H")
mproject.5=menuitem("","BAR")
mproject.6=menuitem("MHELP","Help...")
mproject.7=menuitem("","BAR")
mproject.8=menuitem("MABOUTAMIRC","About Amirc...","?")
mproject.9=menuitem("MABOUTMUI","About MUI...")
mproject.10=menuitem("","BAR")
mproject.11=menuitem("MQUIT","Quit","Q")
res=NewObj("MENUSTRIP","STRIP")
See MenuItem()
| ATTRIBUTES FOR MENUITEM | |||
|---|---|---|---|
| Name | Type | Class | Note |
| Checked | B | ISGN | |
| CheckIt | B | ISG | |
| Enabled | B | ISGN | |
| Exclude | N | ISG | |
| MenuTrigger | B | GN | |
| ShortCut | S | ISG | |
| SubItem | S | I | |
| Title | S | ISG | |
| Toggle | B | ISG | |
MenuTrigger is set to 1 and notified when a Menuitem is selected.
| ATTRIBUTES FOR MENU | |||
|---|---|---|---|
| Name | Type | Class | Note |
| Enabled | B | ISGN | |
| Title | S | ISG | |
| ATTRIBUTES FOR MENUSTRIP | |||
|---|---|---|---|
| Name | Type | Class | Note |
| Enabled | B | ISGN | |
| Title | S | ISG | |
| METHODS | ||
|---|---|---|
| Name | Parameters | Note |
| none defined | ||