TPageControl: better handling TabVisible under win32 (issue #9996)

git-svn-id: trunk@12757 -
This commit is contained in:
paul 2007-11-06 09:24:34 +00:00
parent ff1fe14f18
commit 4405e4bfd3

View File

@ -423,11 +423,10 @@ 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 Page[AValue].TabVisible or (csDesigning in ComponentState) then begin
fPageIndex := AValue;
UpdateAllDesignerFlags;
DoSendPageIndex;
end;
fPageIndex := AValue;
UpdateAllDesignerFlags;
DoSendPageIndex;
end;
{------------------------------------------------------------------------------