1. 首页
  2. 数据库
  3. 其它
  4. DBGrid3D (增加了鼠标滚轮的支持)

DBGrid3D (增加了鼠标滚轮的支持)

上传者: 2021-04-26 04:39:53上传 RAR文件 8.35KB 热度 15次
在原来TDBGrid的基础上增加了鼠标滚轮的支持: unit DBGrid3D; interface uses Windows, Messages, SysUtils, Classes, Controls, Grids, DBGrids; type TDBGrid3D = class(TDBGrid) private { Private declarations } protected { Protected declarations } public { Public declarations } published function DoMouseWheel(Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint): Boolean; override; { Published declarations } end; procedure Register; implementation function TDBGrid3D.DoMouseWheel(Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint): Boolean; begin if WheelDelta 0 then DataSource.DataSet.Prior; end; procedure Register; begin RegisterComponents('Samples', [TDBGrid3D]); end; end.
下载地址
用户评论
码姐姐匿名网友 2025-03-21 06:30:45

真的如描述般可用~~~很好~~~