Click or drag to resize

SystemMenu Class

X#
Create a system menu.
Inheritance Hierarchy
Object
  VObject
    Menu
      SystemMenu

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 CLASS SystemMenu INHERIT Menu
Request Example View Source

The SystemMenu type exposes the following members.

Constructors
  NameDescription
Public methodSystemMenu
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
Properties
  NameDescription
Public propertyAccelerator
The accelerator table to be used with this menu.
(Inherited from Menu.)
Public propertyToolBar
The toolbar that corresponds to the menu.
(Inherited from Menu.)
Top
Methods
  NameDescription
Public methodAppendItem
Add a string to the end of this menu.
(Inherited from Menu.)
Public methodCheckItem
Place a check mark to the left of a specified menu item.
(Inherited from Menu.)
Public methodDeleteItem
Delete an item from this menu, removing it from memory. (To delete a bitmap or string, specify an ID; to delete a submenu, specify the Menu object.)
(Inherited from Menu.)
Public methodDisableItem
Disable a specified menu item (until a subsequent call to Menu:EnableItem()).
(Inherited from Menu.)
Public methodEnableItem
Enable a specified menu item that was previously disabled.
(Inherited from Menu.)
Public methodHandle
Return the handle for a menu.
(Inherited from Menu.)
Public methodHyperLabel
Return the hyperlabel attached to the menu item, or NIL if it has none.
(Inherited from Menu.)
Public methodInsertItem
Insert a new menu item before a specified menu item.
(Inherited from Menu.)
Public methodMakeMenuRtol
Reverse the order of the menu items in a menu. This is only necessary if you are using an International, bi-directional version of Windows.
(Inherited from Menu.)
Public methodName
Return the name, as a string, stored in the hyperlabel attached to the menu command, or NIL if there is none.
(Inherited from Menu.)
Public methodPostInit
Implement customized initialization code for the window.
(Inherited from Menu.)
Public methodPreInit
Implement customized initialization code for the server.
(Inherited from Menu.)
Public methodRegisterItem
Register the hyperlabel for this menu item.
(Inherited from Menu.)
Public methodSetAutoUpdate
Append a section to a specified submenu on a menu. This section automatically keeps track of what MDI child windows are currently open and displays their names on the submenu.
(Inherited from Menu.)
Public methodShowAsPopup
Display menu as a local pop-up menu.
(Inherited from Menu.)
Public methodUncheckItem
Remove the check mark (that the user sees) from the menu item. Typically, you do this in response to a MenuCommandEvent on that item.
(Inherited from Menu.)
Public methodUnregisterItem
Unregister the hyperlabel for this menu item.
(Inherited from Menu.)
Top
Fields
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
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:
X#
1oSysMenu := oMyWin:EnableSystemMenu()
2oSysMenu:AppendItem(MENUSEPARATOR)
3oSysMenu:AppendItem(IDM_ABOUT,"About...")
4oSysMenu:RegisterItem(IDM_ABOUT,HyperLabel{#About})
See Also

Reference