NetXP 3.0 Reference

CommandContextMenu Members

CommandContextMenu overview

Public Instance Constructors

CommandContextMenu Constructor Constructs a new CommandContextMenu.

Public Instance Properties

Animate Specifies whether or not to animate the menu when shown.
EatFinalClick Should the final click message (WM_LBUTTONDOWN) be eaten? Set this to True for left-button handled context menus.
Handle Gets the handle of this menu window.
IsPersonalized Indicates whether or not the menu has infrequent items.
Items A collection of CommandBarItem objects that defines the items in the menu.
Parent The parent context menu of this menu (if this is a submenu).
Renderer The renderer that defines the look and feel of the menu.
ReturnCommand Gets the item that was clicked by the user when the menu was closed.
SelectedMenuItem The initially selected menu item, set before the menu is shown.
ShowInfrequent Specifies whether or not to show the personalized menu initially expanded.
Site The container of this component.
SourceControl The control responsible for handling messages.
SuppressClickEvents Specifies whether or not to raise the Click event for the selected menu item. If you set this to True, no Click events will be generated for menu items.

Public Instance Methods

AssignHandle (inherited from NativeWindow) Assigns a handle to this window.
CalculateWindowSize Calculates the menu window's size.
CreateHandle (inherited from NativeWindow) Creates a window and its handle with the specified creation parameters.
CreateObjRef (inherited from MarshalByRefObject)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
DefWndProc (inherited from NativeWindow)Invokes the default window procedure associated with this window. It is an error to call this method when the Handle property is 0.
DestroyHandle (inherited from NativeWindow) Destroys the window and its handle.
Dismiss Dismisses (closes) the menu.
Dispose Called when the menu must be disposed. NEVER call this function manually if you've set the command bar item collection such that it's no longer owned by this menu.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetItemRect Gets the rectangle (bounds) of an item.
GetLifetimeService (inherited from MarshalByRefObject)Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetType (inherited from Object)Gets the Type of the current instance.
InitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
ReleaseHandle (inherited from NativeWindow) Releases the handle associated with this window.
ShowOverloaded. Shows the popup menu at the specified location. No source control is provided.
ToString (inherited from Object)Returns a String that represents the current Object.
UpdatePosition Requests a repositioning of the menu.

Public Instance Events

Disposed Occurs when the object has been disposed.
Expanded Raised when a collapsed personalized menu is expanded.
MenuQuit Raised when the menu has been dismissed.
Shown Raised after the menu has been shown.

See Also

CommandContextMenu Class | NETXP.Controls.Bars Namespace