Enables or disables the context menu which is displayed at Run-time when an operator clicks the right mouse button on the graphical display.
Defines As
Execution Result
If the property get/set succeeds the return value will be Success. If the return variable is bad then the return value will be InvalidArgument.
Calling Syntax
Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".
[VBA]
Sub Example()
Dim contextMenu As Boolean
`Getting Property value
contextMenu = myPage_AN35.ContextMenu
`Disable the context menu
myPage_AN35.ContextMenu = False
End Sub
[Cicode]
FUNCTION Example()
OBJECT hProcessAnalyst = ObjectByName("AN35");
INT contextMenu;
// Getting current property value
contextMenu =_ObjectGetProperty(hProcessAnalyst,"ContextMenu");
// Disable the context menu
_ObjectSetProperty(hProcessAnalyst, "ContextMenu", 0);
END