Table of Contents

Class ExDropDownButton

Namespace
ExControls
Assembly
ExControls.dll

Extended button control with drop down menu.

[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExDropDownButton.ico")]
public class ExDropDownButton : ExButton, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IButtonControl, IExControl, IThemeable
Inheritance
ExDropDownButton
Implements
Inherited Members
Extension Methods

Constructors

ExDropDownButton()

Initializes a new instance of the ExDropDownButton class without a menu.

public ExDropDownButton()

Properties

ArrowColor

Gets or sets the color of the drop-down arrow when the button is enabled.

[ExCategory(CategoryType.Appearance)]
[ExDescription("ArrowColorDescr")]
public Color ArrowColor { get; set; }

Property Value

Color

DisabledArrowColor

Gets or sets the color of the drop-down arrow when the button is disabled.

[ExCategory(CategoryType.Appearance)]
[ExDescription("DisabledArrowColorDescr")]
public Color DisabledArrowColor { get; set; }

Property Value

Color

DropDownMenu

Gets or sets the menu shown when the button is clicked with the left mouse button - under the button, or under the cursor with ShowMenuUnderCursor.

public ContextMenuStrip? DropDownMenu { get; set; }

Property Value

ContextMenuStrip

ShowMenuUnderCursor

Gets or sets a value indicating whether the drop down menu should be showing under cursor.

public bool ShowMenuUnderCursor { get; set; }

Property Value

bool

Methods

ApplyTheme(ExTheme)

Sets the colors and appearance of the control by the theme.

public override void ApplyTheme(ExTheme theme)

Parameters

theme ExTheme

OnMouseDown(MouseEventArgs)

Raises the OnMouseDown(MouseEventArgs) event.

protected override void OnMouseDown(MouseEventArgs mevent)

Parameters

mevent MouseEventArgs

A MouseEventArgs that contains the event data.

OnPaint(PaintEventArgs)

Raises the OnPaint(PaintEventArgs) event.

protected override void OnPaint(PaintEventArgs pevent)

Parameters

pevent PaintEventArgs

A PaintEventArgs that contains the event data.