Skip to main content

Example: TreeList.Customizing, Customizing.MakeBandPageVisible, Customizing.MakeColumnPageVisible, SimpleCustomizeBox

The following sample shows how to display the customization form. The ShowCustomizationForm method accepts the following parameters:

AIsSimple specifies whether the customization form is in simple mode. If set to True, the form will have only the columns sheet available; otherwise, both the columns and the bands sheets are exposed.

AMakeBandsSheetVisible specifies whether to switch to the bands sheet when the customization form is displayed. Note that this parameter has no effect unless AIsSimple is set to False.

procedure ShowCustomizationForm(AIsSimple, AMakeBandsPageVisible: Boolean);
begin
  cxTreeList.OptionsView.SimpleCustomizeBox := AIsSimple;
  if not AIsSimple then
    begin
      if AMakeBandsSheetVisible then
        cxTreeList.Customizing. AMakeBandsPageVisible
      else
        cxTreeList.Customizing.MakeColumnPageVisible;
    end;
    cxTreeList.Customizing.Visible := True;
end;