mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 21:09:30 +02:00
fix designer problems with hidden tab pages (issue #1700)
git-svn-id: trunk@9563 -
This commit is contained in:
parent
65e76b77bb
commit
a269b3613a
@ -423,7 +423,7 @@ begin
|
||||
if fPageIndex = AValue then exit;
|
||||
if not CanChangePageIndex then exit;
|
||||
//debugln('TCustomNotebook.SetPageIndex B ',dbgsName(Self),' AValue=',dbgs(AValue),' fPageIndex=',dbgs(fPageIndex),' PageCount=',dbgs(PageCount),' HandleAllocated=',dbgs(HandleAllocated));
|
||||
if not Page[AValue].TabVisible then exit;
|
||||
if not Page[AValue].TabVisible and not (csDesigning in ComponentState) then exit;
|
||||
fPageIndex := AValue;
|
||||
UpdateAllDesignerFlags;
|
||||
DoSendPageIndex;
|
||||
|
@ -460,6 +460,7 @@ var
|
||||
X: Integer;
|
||||
begin
|
||||
Result := AIndex;
|
||||
if csDesigning in ANotebook.ComponentState then exit;
|
||||
for X := 0 to AIndex-1 do begin
|
||||
if ANotebook.Page[X].TabVisible = False then Dec(Result);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user