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

Realization of DBGrid Controller Mouse Wheel Event in Delphi7

在线阅读下载全文

作  者:张弦弦[1] 蒙庆芳 王平[1] 康林 

机构地区:[1]西南自动化研究所信息中心,四川绵阳621000 [2]总装重庆军代局驻绵阳地区军代室,四川绵阳621000

出  处:《兵工自动化》2014年第1期94-96,共3页Ordnance Industry Automation

摘  要:针对Delphi7软件中TDBGrid控件内数据量超出屏幕时无法用鼠标进行上下滚动的问题,设计了2种支持鼠标滚轮的方法。通过自行设计包含鼠标滚动事件的TDBGrid控件或通过对Delphi7自身TApplicationEvents控件的控制,实现数据的翻屏或逐条滚动。分析结果证明:2种方式都通过截获Windows操作系统中的消息,达到对TDBGrid控件支持鼠标轮的滚动事件的目的。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.

关 键 词:控件 事件 截获消息 鼠标轮 滚动 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象