Skybound Rebar

RebarBand.MenuClick Event

Occurs when the menu arrow for a toolbar button is pressed.

[Visual Basic]
Public Event MenuClick As RebarButtonEventHandler
[C#]
public event RebarButtonEventHandler MenuClick;

Event Data

The event handler receives an argument of type RebarButtonEventArgs containing data related to this event. The following RebarButtonEventArgs properties provide information specific to this event.

Property Description
Button Gets the RebarButton that raised the event.
Handled Gets or sets whether the event was handled.

Remarks

Only Menu and MenuOrPush buttons will raise this event. Menu buttons raise this event when they are clicked. MenuOrPush buttons raise this event only when the drop-down arrow is clicked.

By default, the context menu specified by the Menu property of the RebarButton is shown when a menu button is clicked. Use this event to display a custom menu or dialog instead. You may also use the ShowMenu method to show a menu. ShowMenu automatically displays the menu in the appropriate position below or above the button. However, unlike the Show method of ContextMenu, the menu shown by ShowMenu will never overlap the button.

To prevent the default context menu from showing, you must set the Handled property of the event data to true before leaving the event handler.

See Also

RebarBand Class | Skybound.Rebar Namespace