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 2683 - MouseWheel Scrolling doesn't trigger OnScroll
Summary: MouseWheel Scrolling doesn't trigger OnScroll
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: 39.231109
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL: https://www.steema.com/support/viewto...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-07 07:22 EST by yeray alonso
Modified: 2024-03-07 07:25 EST (History)
1 user (show)

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 2024-03-07 07:22:09 EST
As the customer explains in the forums, scrolling with the mouse wheel doesn't trigger the OnScroll event.

Note it is triggered when using the TAxisArrowTool and the TAxisScrollTool.

Example using a memo to see how many times the OnScroll event is triggered:

uses Chart, Series, TeeProcs, TeeTools;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1:=TChart.Create(Self);

  with Chart1 do
  begin
    Parent:=Self;
    Align:=alClient;
    Color:=clWhite;
    Gradient.Visible:=False;
    Walls.Back.Color:=clWhite;
    Walls.Back.Gradient.Visible:=False;
    Legend.Hide;
    View3D:=False;

    AddSeries(TLineSeries).FillSampleValues;

    OnScroll:=ChartOnScroll;

    with TAxisArrowTool(Tools.Add(TAxisArrowTool)) do
    begin
      Axis:=Axes.Left;
    end;

    with TAxisScrollTool(Tools.Add(TAxisScrollTool)) do
    begin
      Axis:=Axes.Bottom;
    end;
  end;

  Memo1.Clear;
end;

procedure TForm1.ChartOnScroll(Sender: TObject);
begin
  Memo1.Lines.Add('onscroll');
end;