[英]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: 当我在Delphi 10.1 Berlin中构建项目时,出现错误:
E2003 Undeclared identifier: 'TeeUseMouseWheel' Field
E2003未声明的标识符:“ TeeUseMouseWheel”字段
TeeUseMouseWheel
works in Delphi 2006, so which property can I use instead in Delphi 10.1 Berlin? TeeUseMouseWheel
可在Delphi 2006中使用,因此我可以在Delphi 10.1 Berlin中使用哪个属性代替?
This solution was posted on Steema's forum : 此解决方案已发布在Steema的论坛上 :
This variable has been moved to a new property at:
此变量已移至新属性,位于:
Chart.Panning.MouseWheel
This new MouseWheel property is TPanMouseWheel type:
此新的MouseWheel属性是TPanMouseWheel类型:
TPanMouseWheel=(pmwNormal, pmwInverted, pmwNone);
So you can do (if your chart is named Chart1):
因此,您可以这样做(如果您的图表命名为Chart1):
Chart1.Panning.MouseWheel:=pmwNormal; //pmwInverted //pmwNone
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.