SystemMenu Class
|
|
Create a system menu.
Inheritance Hierarchy
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
SyntaxThe SystemMenu type exposes the following members.
Constructors|
| Name | Description |
|---|
 | SystemMenu |
Construct a system menu.
Important! This method is used internally by X#. Normally, it should not be called in your application code. To create a system menu object, store the return value of the AppWindow:EnableSystemMenu() method.
|
Top
Remarks
System menus are used to provide a series of standard operations, such as moving, closing, and resizing windows. Different GUI conventions dictate what items should be added to the system menu.
An application window can have a system menu by calling AppWindow:EnableSystemMenu(). Using the Window:MenuCommand() event handler, the system menu can be manipulated in the same way as a menu.
To access a window's system menu, you must first enable the system menu with a call to AppWindow:EnableSystemMenu(). You can then use the system menu it returns.
Examples
The following example adds an About item to a system menu:
1oSysMenu := oMyWin:EnableSystemMenu()
2oSysMenu:AppendItem(MENUSEPARATOR)
3oSysMenu:AppendItem(IDM_ABOUT,"About...")
4oSysMenu:RegisterItem(IDM_ABOUT,HyperLabel{#About})
See Also