Click or drag to resize

DataWindow.ContextMenu Property

X#
The context menu attached to the window

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL PROPERTY ContextMenu AS USUAL SET 
Request Example View Source

Property Value

Type: Usual
The context menu attached to the window
Remarks
This can be used in two ways. The DataWindow and its Browser usually share the same ContextMenu and in this situation the assign can be used like this –
X#
1<paramref name="oDataWindow" />:ContextMenu := MyContextMenu{}
If you want the context menus to be different you can now use code like this –
X#
1<paramref name="oDataWindow" />:[ContextMenu,#FormView] := MyContextMenu{}
to just set the FormView context menu, and this –
X#
1<paramref name="oDataWindow" />:[ContextMenu,#BrowseView] := MyOtherContextMenu{}
to set the BrowseView context menu.
See Also