简体   繁体   English

将intellimouse支持添加到TMemo或TRichEdit组件

[英]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属性设置为ssHorizo​​ntal,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.

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