anchordocking: fixed center caption

git-svn-id: trunk@26064 -
This commit is contained in:
mattias 2010-06-12 17:44:15 +00:00
parent e0c859f04e
commit db4cbc90f9

View File

@ -3620,8 +3620,8 @@ begin
end else begin
if CloseButton.Visible then
r.Right:=CloseButton.Left-2;
dx:=Max(0,(r.Right-r.Left-TxtH) div 2);
dy:=Max(0,(r.Bottom-r.Top-TxtW) div 2);
dx:=Max(0,(r.Right-r.Left-TxtW) div 2);
dy:=Max(0,(r.Bottom-r.Top-TxtH) div 2);
Canvas.Font.Orientation:=0;
Canvas.TextOut(r.Left+dx,r.Top+dy,Caption);
end;