Click or drag to resize

DataWindow.ContextMenu Property (Typed)

X#
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 
Request Example View Source

Property Value

Type: Menu
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