DataWindow.ContextMenu Property (Typed) | |
The context menu attached to the window
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL PROPERTY ContextMenu AS Menu GET SET
public override Menu ContextMenu { get; set; }
Request Example
View SourceProperty Value
Type:
MenuThe 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