IDimensionViewer.AdjustWidthOnlyVisible

Syntax

AdjustWidthOnlyVisible: Boolean;

Description

The AdjustWidthOnlyVisible property determines the mode of column width autofit.

Comments

Available values:

To autofit the width, double-click the border between the columns or use the IDimensionViewer.AdjustWidth method.

Example

Executing the example requires a form with a button named Button1 on the form, the DimensionTree component named DimensionTree1 and the UiDimension component that is a data source for DimensionTree1. A dictionary is connected to UiDimension.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    DimensionTree1.ShowColumnHeaders := True;
    DimensionTree1.AdjustWidthOnlyVisible := True;
    DimensionTree1.HighlightTrack := False;
    DimensionTree1.ShowHeaderButton := True;
    DimensionTree1.AdjustWidth(0);
    DimensionTree1.UseSystemImages := True;
End Sub Button1OnClick;

Clicking the button displays column headers and a button that opens column headers menu in the DimensionTree1 component, width of the first column is autofitted considering only visible elements, elements highlighting on hover is disabled; standard icons are used.

See also:

IDimensionViewer