CADability dotNET
Loads a context menu from the resource and sets the command handler.

Namespace: CADability.UserInterface
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static ContextMenu LoadContextMenu(
	string PopUpName,
	ICommandHandler Handler
)
Visual Basic
Public Shared Function LoadContextMenu ( _
	PopUpName As String, _
	Handler As ICommandHandler _
) As ContextMenu
Visual C++
public:
static ContextMenu^ LoadContextMenu(
	String^ PopUpName, 
	ICommandHandler^ Handler
)

Parameters

PopUpName
Type: System..::..String
Name of the context menu
Handler
Type: CADability.UserInterface..::..ICommandHandler
interface of the command handling object

Return Value

The context menu or null, if not found

See Also