IDimensionCombo.AdjustDroppedListWidth

Syntax

AdjustDroppedListWidth([MaxWidth: Integer = -1;][MinWidth: Integer = -1]);

Parameters

MaxWidth is a maximum available width of a drop-down list.

MinWidth is a minimum available width of a drop-down list.

Description

The AdjustDroppedListWidth method adjusts width of a drop-down list of components considering the MinWidth and the MaxWidth constraints, as well as the data, displayed in component.

Comments

The width is adjusted considering expander, flag, icon and state icon, elements text being available. If columns are displayed in a component, the width of all columns is considered. Calling the method changes value of the DroppedListWidth property.

NOTE. Actual width of the drop-down list is set considering constraints that are applied to value of the DroppedListWidth property.

See also:

IDimensionCombo