Search code examples
delphiteechartdelphi-10.1-berlin

Which TChart property to use in Delphi 10.1 Berlin instead of TeeUseMouseWheel?


When I build my project in Delphi 10.1 Berlin, there is an error:

E2003 Undeclared identifier: 'TeeUseMouseWheel' Field

TeeUseMouseWheel works in Delphi 2006, so which property can I use instead in Delphi 10.1 Berlin?


Solution

  • This solution was posted on Steema's forum:

    This variable has been moved to a new property at:

    Chart.Panning.MouseWheel
    

    This new MouseWheel property is TPanMouseWheel type:

    TPanMouseWheel=(pmwNormal, pmwInverted, pmwNone);
    

    So you can do (if your chart is named Chart1):

    Chart1.Panning.MouseWheel:=pmwNormal; //pmwInverted //pmwNone