mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 10:59:06 +02:00
lcl: TCustomPage.IsControlVisible, TCustomPage.HandleObjectShouldBeVisible must take TCustomPage.Visible setting into account (Samuel Herzog note in issue #0009344)
git-svn-id: trunk@25406 -
This commit is contained in:
parent
f34a129c53
commit
dda71573f7
@ -217,18 +217,16 @@ end;
|
||||
|
||||
function TCustomPage.IsControlVisible: Boolean;
|
||||
begin
|
||||
Result := inherited IsControlVisible;
|
||||
if Parent is TCustomNotebook then
|
||||
Result := (PageIndex = TCustomNotebook(Parent).PageIndex)
|
||||
else
|
||||
Result := inherited IsControlVisible;
|
||||
Result := Result and (PageIndex = TCustomNotebook(Parent).PageIndex);
|
||||
end;
|
||||
|
||||
function TCustomPage.HandleObjectShouldBeVisible: boolean;
|
||||
begin
|
||||
Result := inherited HandleObjectShouldBeVisible;
|
||||
if Parent is TCustomNotebook then
|
||||
Result := (PageIndex = TCustomNotebook(Parent).PageIndex)
|
||||
else
|
||||
Result := inherited HandleObjectShouldBeVisible;
|
||||
Result := Result and (PageIndex = TCustomNotebook(Parent).PageIndex);
|
||||
end;
|
||||
|
||||
function TCustomPage.VisibleIndex: integer;
|
||||
|
Loading…
Reference in New Issue
Block a user