mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:29:25 +02:00
LCL: Allow setting TNotebook.PageIndex := -1. Issue #26829, patch from Simon Ameis.
git-svn-id: trunk@46467 -
This commit is contained in:
parent
fe55929cd6
commit
4e21ba148f
@ -183,6 +183,8 @@ begin
|
||||
|
||||
// Update the property
|
||||
FPageIndex := AValue;
|
||||
if (FPageIndex = -1) then
|
||||
exit;
|
||||
|
||||
// And show the new one
|
||||
if Assigned(Page[FPageIndex].FOnBeforeShow) then Page[FPageIndex].FOnBeforeShow(Self, Page[FPageIndex], FPageIndex); // OnBeforeShow event
|
||||
|
Loading…
Reference in New Issue
Block a user