Sign in Join
FPDoc Onlineexperiment

TStatusPanels.Items property

Member of TStatusPanelspublicIn unit ComCtrls

Provides indexed access to the TStatusPanel items in the collection.

Declaration

pascal
property Items[Index: Integer]: TStatusPanel read GetItem write SetItem; default;

Description

Items is a TStatusPanel property which allows access to a status bar panel by an ordinal position specified in Index. Values in the Index argument must be in the range 0..Count-1.

Items is the default property for the class instance, and allows access using either of the following:

// var AStatusBar: TStatusBar;
AStatusBar.Panels.Items[0];
AStatusBar.Panels[0];

It is also the target member for an enumerator. For example:

// var AStatusBar: TStatusBar;
// APanel: TStatusPanel;
for APanel in AStatusBar.Panels do
begin
APanel.Alignment := taCenter;
APanel.Width := 88;
end;

Use methods like Add, Delete, and Clear to maintain the items in the collection.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.