Reference THeaderColumn
Declared in Codebot.Controls.Scrolling.pas on line 28
THeaderColumn is a column in a header bar or details list
THeaderColumn = class(TCollectionItem)
protected
{ The caption shown in the designer }
function GetDisplayName: string; override;
{ Notify OnResize subscribers }
procedure DoResize;
public
{ Create a new column }
constructor Create(ACollection: TCollection); override;
{ Subscribe to notifications when the column is resized }
property OnResize: INotifyDelegate read GetOnResize;
{ The index of the column counting only visible columns }
property VisibleIndex: Integer read GetVisibleIndex;
published
{ The alignment of the caption }
property Alignment: TAlignment read FAlignment write SetAlignment default taLeftJustify;
{ When true the column can be selected }
property CanSelect: Boolean read FCanSelect write FCanSelect;
{ The column caption }
property Caption: string read FCaption write SetCaption;
{ When true the column cannot be resized }
property Fixed: Boolean read FFixed write SetFixed default False;
{ The smallest width the column can be resized to }
property MinWidth: Integer read FMinWidth write SetMinWidth default 10;
{ The sort indicator shown in the column }
property Sort: TSortingOrder read FSort write SetSort default soNone;
{ User defined data }
property Tag: Integer read FTag write FTag;
{ Show or hide the column }
property Visible: Boolean read FVisible write SetVisible default True;
{ The column width }
property Width: Integer read FWidth write SetWidth default 100;
end;See also
INotifyDelegate in Codebot.System.pas
TSortingOrder in Codebot.System.pas