Click or drag to resize

Menu.SetAutoUpdate Method

X#
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.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD SetAutoUpdate(
	nMenuNumber
) AS USUAL CLIPPER
Request Example View Source

Parameters

nMenuNumber (Optional)
Type: Usual
The offset of the submenu to which the new section should be appended. (For example, if a menu contains the items 'File', 'Edit' and 'View' and the offset is 1, the new section is appended to the 'Edit' submenu.) The default is 0 (the first menu item).

Return Value

Type: Usual
Remarks
In MDI applications, there is typically one menu which contains the titles of any currently open MDI child windows. After updating a new section, you must reassign the menu to the owner window's Menu property for the change to take effect.
See Also