[英]Add intellimouse support to a TMemo or TRichEdit component
How i can add intellimouse support to a TMemo or TRichEdit component 我如何为TMemo或TRichEdit组件添加intellimouse支持
i am using Delphi XE 我正在使用Delphi XE
You must set the ScrollBars
property to ssHorizontal, ssVertical or ssBoth
and add the IMouse
unit to your project. 您必须将ScrollBars
属性设置为ssHorizontal,ssVertical或ssBoth
,并将IMouse
单元添加到项目中。
UPDATE UPDATE
To avoid the memory leak caused by the IMouse
unit you must add this code before you application exit (for example in the finalization
part of your main unit). 为避免IMouse
单元导致的内存泄漏,必须在应用程序退出之前添加此代码(例如,在主单元的finalization
部分中)。
if Assigned(Mouse.PanningWindow) then
Mouse.PanningWindow := nil;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.