You've already forked lazarus-ccr
* Handle case when HeaderHotColor is clDefault
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4409 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -7547,13 +7547,10 @@ begin
|
||||
begin
|
||||
if Hot then
|
||||
TextColor := FHeader.Treeview.FColors.HeaderHotColor
|
||||
else
|
||||
begin
|
||||
if FHeader.FFont.Color = clDefault then
|
||||
TextColor := clCaptionText
|
||||
else
|
||||
TextColor := FHeader.FFont.Color;
|
||||
end;
|
||||
if TextColor = clDefault then
|
||||
TextColor := clCaptionText;
|
||||
SetTextColor(DC, ColorToRGB(TextColor));
|
||||
DrawText(DC, PChar(Caption), Length(Caption), Bounds, DrawFormat);
|
||||
end;
|
||||
|
Reference in New Issue
Block a user