Now with even more effort to use the right names amongst a myriad of ill-explained and logically incoherent bundles of random color enumeration.

This commit is contained in:
rosenfield.albert
2008-06-23 18:06:54 +00:00
parent 167f7529ad
commit cf7859a131

View File

@ -1101,10 +1101,13 @@ begin
// decide colors // decide colors
Brush.Color := clWindow; Brush.Color := clWindow;
Font.Color := clWindowText; Font.Color := clWindowText;
if IsCategory(Index) or (odSelected in State) then begin if IsCategory(Index) then begin
Font.Color := clWindow; Font.Color := clWindow;
if IsCategory(Index) then Brush.Color := clWindowText Brush.Color := clWindowText
else if odSelected in State then Brush.Color := clHighlight; end
else if odSelected in State then begin
Font.Color := clHighlightText;
Brush.Color := clHighlight;
end; end;
// fill the rectangle first // fill the rectangle first
FillRect(Rect); FillRect(Rect);