ExContextMenu object
The eXContextMenu component displays and handles a context menu (also called contextual, shortcut, and popup or pop-up menu). A context menu is a menu in a graphical user interface (GUI) that appears upon user interaction, such as a right-click mouse operation. The eXContextMenu component is written from scratch, and does NOT use the system's popup menu. For instance, the /NET's System.Windows.Controls.ContextMenu does not support a modal form, so you have to assign a handler for each item, instead the eXContextMenu component waits for the user to make the selection, and returns the selected values. Also another major difference is that the System.Windows.Controls.ContextMenu is closed once any item is clicked, while in the eXContextMenu component, this is not required, so you can check multiple check boxes, and when you click outside, the Select method returns the selected values.

The eXContextMenu supports the following properties and methods:

NameDescription
AllowToggleRadioAllows or prevents toggling the radio state.
AllowToolTipAllows or prevents showing the item's tooltip.
AppearanceRetrieves or sets the control's appearance.
AttachTemplateAttaches a script to the current object, including the events, from a string, file, a safe array of bytes.
BackColorSpecifies the control's background color.
BackgroundReturns or sets a value that indicates the background color for parts in the control.
CloseOnClickGets or sets a value that specifies whether the context menu is closing.
CursorGets or sets the cursor that is displayed when the mouse pointer hovers the control.
DebugRetrieves or sets a value that indicating whether the item's identifier is visible.
EventParamRetrieves or sets a value that indicates the current's event parameter.
ExecuteTemplateExecutes a template and returns the result.
FlatBackColorSpecifies the color to left part of the menu.
FlatImageWidthSpecifies the width of the column to display the icons/images when the control's MenuAppearance is exMenuFlat.
FontRetrieves or sets the control's font.
ForeColorSpecifies the control's foreground color.
GetRetrieves an array of Item objects that meet the criteria.
GetCheckedRetrieves an array of Item objects, that displays a check box which is checked.
GetRadioRetrieves an array of Item objects of radio type in the same group, that are checked.
GetUncheckedRetrieves an array of Item objects, that displays a check box which is unchecked.
HTMLPictureAdds or replaces a picture in HTML captions.
ImagesSets at runtime the control's image list. The Handle should be a handle to an Images List Control.
ImageSizeRetrieves or sets the size of icons the control displays.
IncrementalSearchSpecifies how the control searches for the objects while user types characters.
itemReturns a specific Item object giving its identifier or caption.
ItemsRetrieves the control's Items collection.
LocalAppearanceRetrieves or sets the local popup's appearance.
MenuAppearanceRetrieves or sets a value that indicates the menu's appearance.
NotifierRetrieves or sets the handle of the window that receives notifications/WM_COMMAND messages.
PictureRetrieves or sets a graphic to be displayed in the control.
PictureDisplayRetrieves or sets a value that indicates the way how the graphic is displayed on the control's background
RefreshRefreses the control.
ReplaceIconAdds a new icon, replaces an icon or clears the control's image list.
SelBackColorRetrieves or sets a value that indicates the selection background color.
SelectDisplays the shortcut menu at the specified location and tracks the selection of items on the menu.
SelForeColorRetrieves or sets a value that indicates the selection foreground color.
ShowCheckedAsSelectedSpecifies whether the checked items shows as selected.
ShowCheckedAsSelectedTransparencySpecifies the transparency ( percent ) to show the checked items when selected.
ShowPopupArrowIndicates the type of the arrow to be shown when the item displays the sub-menu.
ShowPopupEffectSpecifies the effect to show the popup menu when clicking an item, such as scrolling, lighting up, and so on.
TemplateSpecifies the control's template.
TemplateDefDefines inside variables for the next Template/ExecuteTemplate call.
TemplatePutDefines inside variables for the next Template/ExecuteTemplate call.
ToolTipDelaySpecifies the time in ms that passes before the ToolTip appears.
ToolTipFontRetrieves or sets the tooltip's font.
ToolTipPopDelaySpecifies the period in ms of time the ToolTip remains visible if the mouse pointer is stationary within a control.
ToolTipWidthSpecifies a value that indicates the width of the tooltip window, in pixels.
ToStringLoads or saves the Items collection using string representation (shortcut of Items.ToString property).
UseVisualThemeSpecifies whether the control uses the current visual theme to display certain UI parts.
VersionRetrieves the control's version.
VisibilitySpecify the popup's visibility in percents: 90% is barely visible, and 10% is nearly opaque.
VisualAppearanceRetrieves the control's appearance.