The Menu Object
Synopsis
Description
A pulldown menu.
- Submenus (a menu with a parent of type Menu) cannot have a Popup child.
Inherited Resources
New Resources
- The text string for the menu label.
| Name |
Type |
Default |
| XuNguiMnemonic |
string |
undef |
- A single character which can be used with Alt as a keyboard
shortcut to open the menu. The mnemonic character is underlined in the
label.
Example Code
MENUBAR = all("Menubar");
MENUBAR = MENUBAR[1];
create Menu $(MENUBAR).User
( XuNguiMnemonic = "U"
);
create Button $(MENUBAR).User.Open
( XuNguiCallback = "GuiFileOpen"
);
create Menu $(MENUBAR).User.ViewAs
( XuNguiLabel = "View as ...",
XuNguiMnemonic = "V"
);
create Button $(MENUBAR).User.ViewAs.BarChart
( XuNguiLabel = "Bar Chart",
XuNguiCallback = "UserViewAsCB",
XuNguiCallbackData = "'bar'"
);
create Button $(MENUBAR).User.ViewAs.LineGraph
( XuNguiLabel = "Line Graph",
XuNguiCallback = "UserViewAsCB",
XuNguiCallbackData = "'line'"
);
|
Return to Gsharp Applications Reference Manual
|