ITreeCombo.AdjustDroppedListWidth

Syntax

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

Parameters

MaxWidth - maximum allowed width of the drop-down list.

MinWidth - minimum allowed width of the 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 the component.

Comments

The width is adjusted taking into account the availability of expander, checkbox, icon and state icon, text of elements. If the columns are displayed in the component, the width of all columns is taken into account. Calling the method changes value of the DroppedListWidth property.

NOTE. The actual width of the drop-down list is set taking into account the constraints set for the value of the DroppedListWidth property.

See also:

ITreeCombo