DataWindow.ContextMenu Property | |
The context menu attached to the window
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL PROPERTY ContextMenu AS USUAL SET
public override Usual ContextMenu { set; }
Request Example
View SourceProperty Value
Type:
UsualThe 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 –
1<paramref name="oDataWindow" />:ContextMenu := MyContextMenu{}
If you want the context menus to be different you can now use code like this –
1<paramref name="oDataWindow" />:[ContextMenu,#FormView] := MyContextMenu{}
to just set the FormView context menu, and this –
1<paramref name="oDataWindow" />:[ContextMenu,#BrowseView] := MyOtherContextMenu{}
to set the BrowseView context menu.
See Also