TAChart: Fix selected item background and user-defined item drawing in TChartListbox

git-svn-id: trunk@34016 -
This commit is contained in:
ask 2011-12-07 04:46:33 +00:00
parent 03933b7304
commit af5b29a00b

View File

@ -306,10 +306,15 @@ var
x: Integer;
ch: Boolean;
begin
Unused(AState);
if FChart = nil then exit;
if Assigned(OnDrawItem) then begin
OnDrawItem(Self, AIndex, ARect, AState);
exit;
end;
if
(odPainted in AState) or (FChart = nil) or not InRange(AIndex, 0, Count - 1)
then exit;
Canvas.FillRect(ARect);
CalcRects(ARect, rcb, ricon);
if cloShowCheckboxes in Options then begin