Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 127

Summary: [TV52014768] OnGetPointerStyle applies the changes at the current point for the ma...
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major    
Priority: High    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2013-11-20 09:59:07 EST
OnGetPointerStyle applies the changes at the current point for the majority of the properties, but not for the Color, that is applied two points to the right. TeeChart for .NET added an argument to this event to change point color too.
procedure TForm1.FormCreate(Sender: TObject);
begin
 Chart1.View3D:=false;
 Series1.FillSampleValues(5);
end;
function TForm1.Series1GetPointerStyle(Sender: TChartSeries;
 ValueIndex: Integer): TSeriesPointerStyle;
begin
 if ValueIndex=0 then
 begin
 Sender.Color:=clRed; //third point!! wrong!!
 (Sender as TPointSeries).Pointer.HorizSize:=10; //first point, ok
 (Sender as TPointSeries).Pointer.VertSize:=10; //first point, ok
 (Sender as TPointSeries).Pointer.Pen.Width:=3; //first point, ok
 end
 else
 begin
 Sender.Color:=OperaPalette[0];
 (Sender as TPointSeries).Pointer.HorizSize:=4;
 (Sender as TPointSeries).Pointer.VertSize:=4;
 (Sender as TPointSeries).Pointer.Pen.Width:=1;
 end;
result:=psRectangle;
end; [created:2010-03-31T17:43:44.000+01:00 reported by:yeray@steema.com reported in version:8.06.60902 (TeeChart VCL)]