Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.setContextMenu

Sets the shortcut menu (also known as a context menu) associated with this control.

Syntax

public final void setContextMenu( ContextMenu contextMenu )

Parameters

contextMenu

The ContextMenu object that represents the shortcut menu that appears when the user right-clicks this control.

Remarks

The shortcut menu is the menu that appears when the user right-clicks the control.

See Also   getContextMenu