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 - Scroll the chart moving the mouse over a TRectangleTool doesn't work
Summary: Scroll the chart moving the mouse over a TRectangleTool doesn't work
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 23.171221
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-05 07:09 EST by yeray alonso
Modified: 2018-03-05 07:09 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;