From Xojo Documentation

Revision as of 15:55, 11 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


New in 2011r2

Supported for all project types and targets.

PresentContextualMenu displays the contextual menu assigned to the WebControl.


By using this method, the user does not need to right+click to trigger the contextual menu. For example, if PresentContextualMenu is called in the MouseEnter event, the contextual menu will display whenever the mouse enters the control.

To use a menu as a contextualmenu, use the ContextualMenu property. The menu will be shown as a contextual menu when the user right-clicks on the WebControl.

Regardless of whether the menu is displayed by right-clicking or by calling PresentContextualMenu, the ContextualMenuAction event handler is called when a menu is selected.


Display the contextual menu attached to a Button:


See Also

WebControl.ContextualMenuAction, WebControl.ContextualMenu