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 2483

Summary: Zoom rectangle not following mouse in OpenGL
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: OpenGL 3DAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement CC: yeray
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2021-11-10 09:14:34 EST
The Zoom rectangle looks accurate when the chart is 2D and there's no zoom, or when the mouse is in the center of the chart.
However, there seems to be some offset when having:

- Chart in 2D with some zoom:

uses Series, TeeGLCanvas;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Canvas:=TGLCanvas.Create;
  Chart1.Legend.Hide;

  Chart1.View3D:=False;
  Chart1.Aspect.Zoom:=70;

  Chart1.AddSeries(TLineSeries).FillSampleValues(5);
end;

- Chart in 3D:

uses Series, TeeGLCanvas;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Canvas:=TGLCanvas.Create;
  Chart1.Legend.Hide;

  Chart1.Aspect.Orthogonal:=False;

  Chart1.AddSeries(TLineSeries).FillSampleValues(5);
end;

Note how the zoom rectangle coordinates look quite correct when the mouse is near the center of the chart, but gets worse as you move to the edges.