mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 15:58:16 +02:00
44 lines
1.8 KiB
PHP
44 lines
1.8 KiB
PHP
{%MainUnit ../extctrls.pp}
|
|
{******************************************************************************
|
|
TNotebook
|
|
******************************************************************************
|
|
|
|
*****************************************************************************
|
|
* *
|
|
* This file is part of the Lazarus Component Library (LCL) *
|
|
* *
|
|
* See the file COPYING.modifiedLGPL.txt, 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. *
|
|
* *
|
|
*****************************************************************************
|
|
}
|
|
|
|
function TNotebook.GetActiveNotebookPageComponent: TPage;
|
|
begin
|
|
Result:=TPage(GetActivePageComponent);
|
|
end;
|
|
|
|
function TNotebook.GetNoteBookPage(Index: Integer): TPage;
|
|
begin
|
|
Result:=TPage(GetPage(Index));
|
|
end;
|
|
|
|
procedure TNotebook.SetActiveNotebookPageComponent(const AValue: TPage);
|
|
begin
|
|
SetActivePageComponent(AValue);
|
|
end;
|
|
|
|
{------------------------------------------------------------------------------
|
|
TNotebook Constructor
|
|
------------------------------------------------------------------------------}
|
|
constructor TNotebook.Create(TheOwner: TComponent);
|
|
begin
|
|
PageClass:=TPage;
|
|
inherited Create(TheOwner);
|
|
end;
|
|
|