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 2010

Summary: Scroll the chart moving the mouse over a TRectangleTool doesn't work
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: 23.171221   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=16846
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2018-03-05 07:09:06 EST
Find below a simple example with a TAnnotationTool and a TRectangleTool.
If you try to scroll the chart with the right mouse button, it works fine over the TAnnotationTool but not over the TRectangleTool.

uses Series, TeeTools;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Legend.Hide;
  Chart1.View3D:=False;

  Chart1.AddSeries(TLineSeries).FillSampleValues;

  with Chart1.Tools.Add(TRectangleTool) as TRectangleTool do
  begin
    Shape.AutoSize:=False;
    Shape.Color:=clRed;
    Shape.Text:='Rectangle';
    Shape.Transparency:=30;
    Shape.Left:=400;
    Shape.Top:=100;
    Height:=100;
    Width:=100;
  end;

  with Chart1.Tools.Add(TAnnotationTool) as TAnnotationTool do
  begin
    Shape.CustomPosition:=True;
    Shape.AutoSize:=False;
    Shape.Text:='Annotation';
    Shape.Top:=100;
    Shape.Left:=200;
    Shape.Height:=100;
    Shape.Width:=100;
  end;
end;