简体   繁体   中英

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?

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 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM