好文档 - 专业文书写作范文服务资料分享网站

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

天下 分享 时间: 加入收藏 我要投稿 点赞

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

张弦弦;蒙庆芳;王平;康林

【期刊名称】《兵工自动化》 【年(卷),期】2014(000)001

【摘要】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控件支持鼠标轮的滚动事件的目的。 【总页数】3页(94-96)

【关键词】控件;事件;截获消息;鼠标轮;滚动 【作者】张弦弦;蒙庆芳;王平;康林

【作者单位】西南自动化研究所信息中心,四川 绵阳 621000;西南自动化研究所信息中心,四川 绵阳 621000;西南自动化研究所信息中心,四川 绵阳

621000;总装重庆军代局驻绵阳地区军代室,四川 绵阳 621000 【正文语种】中文 【中图分类】TP311.1 【相关文献】

1.Delphi中带有鼠标事件的DBGrid控件的设计与应用 [J], 黄雄波; 丘陵 2.VB语言中利用TextBox控件实现MsflexGrid控件的数据输入功能 [J], 倪蕴涛

3.VB6中对MSHFlexGrid控件编程模拟实现滚动条与鼠标滚轮动作 [J], 郝西成 4.用Delphi集成ActiveX控件的方法 [J], 方红雨; 崔逊学 5.选择题控件在VB中的设计与实现 [J], 隆坤; 杨连贺

以上内容为文献基本信息,获取文献全文请下载

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

Delphi7中DBGrid控件鼠标滚轮事件的实现方法张弦弦;蒙庆芳;王平;康林【期刊名称】《兵工自动化》【年(卷),期】2014(000)001【摘要】WhendataquantityofTDBGridcontrollerinDelphi7softwareoutofscreen,theoperator
推荐度:
点击下载文档文档为doc格式
7fy9u05e54862m61dk4v721et5ixw1005jm
领取福利

微信扫码领取福利

微信扫码分享