When I replaced this with the parameters fromTeeChart8, the legend symbol is now drawn correctly. Will Steema restore the DrawPointer parameters to those in TeeChart 8, or do I have to write some overloaded procedure in my code to obtain the output I require. If the latter, can you please indicate where I would need to introduce the overloaded procedure as the TeePointerDrawLegend is deep within the TeeChart code.
Code: Select all
Procedure TeePointerDrawLegend(const Pointer:TSeriesPointer; AColor:TColor;
Const Rect:TRect; DrawPen:Boolean;
AStyle:TSeriesPointerStyle);
var tmpHoriz : Integer;
tmpVert : Integer;
tmpPenW : Integer;
tmpX : Integer;
tmpY : Integer;
tmp : Integer;
begin
if Assigned(Pointer.ParentChart) then
begin
// code
// replaced this expression in TeeChart2013 version
{ Pointer.DrawPointer(Pointer.ParentChart.Canvas,
False,
tmpX,
tmpY,
tmpHoriz, //Math.Min(Pointer.HorizSize,tmpHoriz),
tmpVert, //Math.Min(Pointer.VertSize,tmpVert),
AColor,AStyle);}
// with this one from TeeChart 8
Pointer.DrawPointer(Pointer.ParentChart.Canvas,
False,
tmpX,
tmpY,
Math.Min(Pointer.HorizSize,tmpHoriz),
Math.Min(Pointer.VertSize,tmpVert),
AColor,AStyle);
end;
end;
end;