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:
paul 2010-05-14 17:05:56 +00:00
parent f34a129c53
commit dda71573f7

View File

@ -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;