[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TStatusPanels.Items

Provides indexed access to the TStatusPanel items in the collection.

Declaration

Source position: comctrls.pp line 108

public property TStatusPanels.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

TStatusPanel

  

Implements a panel displayed in TStatusBar.

TStatusPanels.Add

  

Adds a new TStatusPanel instance to the collection.

TCollection.Clear

TCollection.Delete

TCollection.Items


Version 4.0 Generated 2025-05-03 Home