You've already forked lazarus-ccr
jvcllaz: improved drawing of TJvTabBar by TJvTabBarXPPainter in Linux, still not perfect.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7418 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1476,8 +1476,9 @@ begin
|
|||||||
CalcTabsRects;
|
CalcTabsRects;
|
||||||
Bmp := TBitmap.Create;
|
Bmp := TBitmap.Create;
|
||||||
try
|
try
|
||||||
Bmp.Width := ClientWidth;
|
Bmp.SetSize(ClientWidth, ClientHeight);
|
||||||
Bmp.Height := ClientHeight;
|
Bmp.Canvas.Brush.Color := clWhite;
|
||||||
|
Bmp.Canvas.FillRect(0, 0, Bmp.Width, Bmp.Height);
|
||||||
CurrentPainter.DrawBackground(Bmp.Canvas, Self, ClientRect);
|
CurrentPainter.DrawBackground(Bmp.Canvas, Self, ClientRect);
|
||||||
if (FBtnLeftScroll.State <> sbsHidden) and (FBtnRightScroll.State <> sbsHidden) then
|
if (FBtnLeftScroll.State <> sbsHidden) and (FBtnRightScroll.State <> sbsHidden) then
|
||||||
begin
|
begin
|
||||||
|
@ -128,6 +128,7 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
Dec(TextRect.Right, 3);
|
Dec(TextRect.Right, 3);
|
||||||
|
Canvas.Brush.Style := bsClear;
|
||||||
ThemeServices.DrawText(Canvas.Handle, TabDetails, Tab.Caption, TextRect, DT_SINGLELINE or DT_VCENTER or DT_END_ELLIPSIS, 0);
|
ThemeServices.DrawText(Canvas.Handle, TabDetails, Tab.Caption, TextRect, DT_SINGLELINE or DT_VCENTER or DT_END_ELLIPSIS, 0);
|
||||||
|
|
||||||
if Tab.TabBar.CloseButton then
|
if Tab.TabBar.CloseButton then
|
||||||
|
Reference in New Issue
Block a user