mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-01 13:49:34 +02:00
lcl: DoSendPageIndex should set LastChangePageIndex for correct page reporting on page show/hide
git-svn-id: trunk@25419 -
This commit is contained in:
parent
7faf34fbcc
commit
c66dfcc85c
@ -395,9 +395,9 @@ end;
|
||||
function TCustomNotebook.GetActivePageComponent: TCustomPage;
|
||||
begin
|
||||
if (FPageIndex >= 0) and (FPageIndex < PageCount) then
|
||||
Result:=Page[FPageIndex]
|
||||
Result := Page[FPageIndex]
|
||||
else
|
||||
Result:=nil;
|
||||
Result := nil;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
@ -937,6 +937,7 @@ begin
|
||||
//DebugLn('[TCustomNotebook.DoSendPageIndex] B ',dbgsName(Self),' PageIndex=',dbgs(fPageIndex));
|
||||
{$ENDIF}
|
||||
ShowCurrentPage;
|
||||
FPageIndexOnLastChange := FPageIndex;
|
||||
TWSCustomNotebookClass(WidgetSetClass).SetPageIndex(Self, FPageIndex);
|
||||
{$IFDEF NOTEBOOK_DEBUG}
|
||||
//DebugLn('[TCustomNotebook.DoSendPageIndex] END ',dbgs(FPageIndex));
|
||||
|
Loading…
Reference in New Issue
Block a user