LCL: fix TabControl invalidation

git-svn-id: trunk@42559 -
This commit is contained in:
martin 2013-09-02 13:04:15 +00:00
parent 112f98bc2f
commit aae0ab1f7b
2 changed files with 5 additions and 3 deletions

View File

@ -356,7 +356,7 @@ type
procedure SetPageIndex(AValue: Integer);
procedure SetPages(AValue: TStrings);
procedure SetShowTabs(AValue: Boolean);
procedure SetTabPosition(tabPos: TTabPosition);
procedure SetTabPosition(tabPos: TTabPosition); virtual;
procedure ShowCurrentPage;
procedure UpdateAllDesignerFlags;
procedure UpdateDesignerFlags(APageIndex: integer);
@ -721,7 +721,7 @@ type
procedure SetScrollOpposite(const AValue: Boolean);
procedure SetStyle(const AValue: TTabStyle);
procedure SetTabHeight(const AValue: Smallint);
procedure SetTabPosition(const AValue: TTabPosition);
procedure SetTabPosition(AValue: TTabPosition); override;
procedure SetTabs(const AValue: TStrings);
procedure SetTabWidth(const AValue: Smallint);
protected

View File

@ -337,6 +337,8 @@ begin
NewWidth,TabControl.ClientHeight);
end;
end;
TabControl.Invalidate;
end;
function TTabControlNoteBookStrings.IndexOfTabAt(X, Y: Integer): Integer;
@ -463,7 +465,7 @@ begin
TTabControlStrings(FTabs).TabHeight:=AValue;
end;
procedure TTabControl.SetTabPosition(const AValue: TTabPosition);
procedure TTabControl.SetTabPosition(AValue: TTabPosition);
begin
if FTabPosition=AValue then exit;
FTabPosition:=AValue;