mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 02:19:39 +02:00
TCustomTabControl: rename a method. No functional changes.
This commit is contained in:
parent
5e54b2f921
commit
148735d8fb
@ -463,7 +463,7 @@ type
|
||||
function GetPageCount : integer; virtual;
|
||||
procedure InsertPage(APage: TCustomPage; Index: Integer); virtual;
|
||||
procedure RemovePage(Index: Integer); virtual;
|
||||
procedure ActivateFirstControlOnPage(APage: TCustomPage) virtual;
|
||||
procedure MaybeSelectFirstControlOnPage(APage: TCustomPage) virtual;
|
||||
//Delphi compatible properties
|
||||
function CanChange: Boolean; virtual;
|
||||
property DisplayRect: TRect read GetDisplayRect;
|
||||
|
@ -769,7 +769,7 @@ begin
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
procedure TCustomTabControl.ActivateFirstControlOnPage(APage: TCustomPage);
|
||||
procedure TCustomTabControl.MaybeSelectFirstControlOnPage(APage: TCustomPage);
|
||||
var
|
||||
ParentForm: TCustomForm;
|
||||
C, ActiveControl: TWinControl;
|
||||
@ -1065,7 +1065,7 @@ begin
|
||||
ParentForm := GetParentForm(Self);
|
||||
if not (Assigned(ParentForm) and Assigned(APage) and APage.Visible and APage.Enabled and (APage.ControlCount > 0)) then
|
||||
Exit;
|
||||
ActivateFirstControlOnPage(APage);
|
||||
MaybeSelectFirstControlOnPage(APage);
|
||||
|
||||
DoChange;
|
||||
end;
|
||||
@ -1104,7 +1104,7 @@ begin
|
||||
FPageIndex := AValue;
|
||||
UpdateAllDesignerFlags;
|
||||
DoSendPageIndex;
|
||||
ActivateFirstControlOnPage(GetActivePageComponent);
|
||||
MaybeSelectFirstControlOnPage(GetActivePageComponent);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user