Skip to main content

TdxBarCustomButton.DoDropDown(TdxBarButtonControl,Integer,Integer,Boolean) Method

Activates an associated dropdown menu.

Declaration

procedure DoDropDown(AControl: TdxBarButtonControl; X: Integer; Y: Integer; ByMouse: Boolean); dynamic;

Parameters

Name Type
AControl TdxBarButtonControl
X Integer
Y Integer
ByMouse Boolean

Remarks

This procedure is used internally to activate a dropdown menu. The procedure drops down a menu only if the ButtonStyle property is set to bsDropDown or bsCheckedDropDown.

X and Y specify the coordinates (in pixels) of the menu’s display position.

If True is passed as the ByMouse parameter, the menu is activated by mouse click events.

Descendants can override the procedure to perform special actions on menu activation.

See Also