LCL/TPageControl: Add new method "Clear" to remove all pages.

git-svn-id: trunk@65355 -
This commit is contained in:
wp 2021-07-03 20:44:02 +00:00
parent 5a21cedcbb
commit 8b6e1655ea
2 changed files with 5 additions and 0 deletions

View File

@ -589,6 +589,7 @@ type
function DoUndockClientMsg(NewTarget, Client: TControl):boolean; override;
function ChildClassAllowed(ChildClass: TClass): boolean; override;
public
procedure Clear;
function FindNextPage(CurPage: TTabSheet;
GoForward, CheckTabVisible: Boolean): TTabSheet;
procedure SelectNextPage(GoForward: Boolean);

View File

@ -193,5 +193,9 @@ begin
Result.PageControl := Self;
end;
procedure TPageControl.Clear;
begin
Tabs.Clear;
end;
// included by comctrls.pp