mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-24 13:44:19 +02:00
53 lines
1.6 KiB
PHP
53 lines
1.6 KiB
PHP
// included by comctrls.pp
|
|
|
|
{ TStatusPanels
|
|
|
|
*****************************************************************************
|
|
* *
|
|
* This file is part of the Lazarus Component Library (LCL) *
|
|
* *
|
|
* See the file COPYING.LCL, included in this distribution, *
|
|
* for details about the copyright. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
* *
|
|
*****************************************************************************
|
|
|
|
}
|
|
|
|
constructor TStatusPanels.Create(StatusBar: TStatusBar);
|
|
begin
|
|
inherited Create(TStatusPanel);
|
|
FStatusBar := StatusBar;
|
|
end;
|
|
|
|
function TStatusPanels.Add: TStatusPanel;
|
|
begin
|
|
Result := TStatusPanel(inherited Add);
|
|
end;
|
|
|
|
function TStatusPanels.GetItem(Index: Integer): TStatusPanel;
|
|
begin
|
|
Result := TStatusPanel(inherited GetItem(Index));
|
|
end;
|
|
|
|
function TStatusPanels.GetOwner: TPersistent;
|
|
begin
|
|
Result := FStatusBar;
|
|
end;
|
|
|
|
procedure TStatusPanels.SetItem(Index: Integer; Value: TStatusPanel);
|
|
begin
|
|
inherited SetItem(Index, Value);
|
|
end;
|
|
|
|
procedure TStatusPanels.Update(Item: TCollectionItem);
|
|
begin
|
|
FStatusBar.Invalidate;
|
|
end;
|
|
|
|
// included by comctrls.pp
|
|
|