首页> 中文期刊> 《兵工自动化》 >Delphi7中DBGrid控件鼠标滚轮事件的实现方法

Delphi7中DBGrid控件鼠标滚轮事件的实现方法

         

摘要

When data quantity of TDBGrid controller in Delphi7 software out of screen, the operator can not use mouse to roll up and down. Therefore, design 2 methods to supporting mouse wheel. Through design TDBGrid controller including mouse wheel event or by controlling in TApplicationEvents controller of Delphi7, realize turning over data screen or scrolling data one by one. The analysis data proves that: 2 methods can intercept information of Windows operation system, then realize TDBGrid controller supporting mouse wheel rolling event.%针对 Delphi7软件中 TDBGrid控件内数据量超出屏幕时无法用鼠标进行上下滚动的问题,设计了2种支持鼠标滚轮的方法。通过自行设计包含鼠标滚动事件的TDBGrid控件或通过对Delphi7自身TApplicationEvents控件的控制,实现数据的翻屏或逐条滚动。分析结果证明:2种方式都通过截获 Windows 操作系统中的消息,达到对TDBGrid控件支持鼠标轮的滚动事件的目的。

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号