怎么判断鼠标左右键 如题if Button.mbRight=true then不能这样写我想知道怎么写求知没分了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TMain_F.GridUserInfoMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);begin begin if Button = mbRight then begin TStringGridEx(Sender).OnMouseDown := nil; TStringGridEx(Sender).MouseDown(mbLeft, Shift, X, Y); TStringGridEx(Sender).OnMouseDown := GridUserInfoMouseDown; end; end;end; mouseDown消息的参数里有相关信息可以判断是左右键的 OnMouseDown事件的Button: TMouseButton就是标识是鼠标左右键的,它有三个取值:TMouseButton = (mbLeft, mbRight, mbMiddle)。 要靠消息你那种写法,就像.net的写法 hook 取分辨率的API TbsSkinCheckListBox 的使用问题 Delphi高手帮帮忙 请高手指dd点关于DBGrid控件的问题,一定给分!! 一个漂亮的Delphi程序(Delphi在分形艺术中的应用) delphi 用TFileStreamdelphi操作文件,删除文件结尾处的空字符,要这么操作,本人新手 200只是为了它 在Onposterror中如何捕获不同的系统错误信息,并将他们换成中文提示! 运行delphi7程序时出现的错误.大虾给我看看啊,郁闷几天了 谁能帮帮我,我真的没分了。 skinadapter 使用问题 怎么用combobox控件读取数据库里的内容
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
begin
if Button = mbRight then
begin
TStringGridEx(Sender).OnMouseDown := nil;
TStringGridEx(Sender).MouseDown(mbLeft, Shift, X, Y);
TStringGridEx(Sender).OnMouseDown := GridUserInfoMouseDown;
end;
end;
end;
你那种写法,就像.net的写法