Skip to main content

TdxBarManager.ButtonArrowWidth Property

Specifies the width of dropdown buttons which belong to the current bar manager’s buttons in pixels.

Declaration

property ButtonArrowWidth: Integer read; write; default dxBarDefaultButtonArrowWidth;

Property Value

Type Default
Integer dxBarDefaultButtonArrowWidth

Remarks

A user can change the default style of a button via the ButtonStyle property. If the bsDropDown or bsCheckedDropDown value is set to this property, a dropdown button is drawn on the right of the button. Use the ButtonArrowWidth property to get or set the width of the dropdown buttons which belong to the buttons of the TdxBarButton type.

In the following table a dropdown button with different values for the ButtonArrowWidth property is displayed.

Value Sample
10
20

A value assigned to the ButtonArrowWidth property must be more than 2. If the current bar manager’s buttons are enlarged (the ImageOptions.LargeIcons property is set to True), the value of ButtonArrowWidth property is doubled automatically.

When painting, the width of dropdown buttons can be increased or decreased depending upon the bar manager’s style. Get the actual width of dropdown buttons using a painter’s RealButtonArrowWidth class function.

The default value of the ButtonArrowWidth property is specified by the dxBarDefaultButtonArrowWidth constant.

See Also