100分相送 如何在窗体上执行右击鼠标事件. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.FormMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);begin if button=mbRight then showmessage('KAO,是右键');end; procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);begin if button=mbRight then showmessage('ok!');end; 可在OnMouseUp或者OnMouseDown事件里面判断,用Button参数 procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;Shift: TShiftState; X, Y: Integer);begin if button=mbright then showmessage('您单击了右键!')end; 哇噻,来晚了,分儿,别走~!if button=mbRight then…… 有onmouseup,onmousedown事件啊。。 呵呵也来晚了-----------------------------------------------------大家有空到这里看看:www.nxrs.net study and try it :) procedure TForm1.FormMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);begin if button=mbRight then showmessage('是右键!还有分吗?呵呵');end; 来晚了procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);begin if button=mbRight then showmessage('单击了鼠标右键!');end; 内存泄露-只有多核CPU的机器上有 adoconnection向adoquery赋数据库名的代码怎么写? 怎样在一个表里引用另一个表里的变量 TDsmtp与TDmessage问题 请问用Delphi给ASP写Com+如何调试(我的意思是说能不能Debug),顶者有分! 数据查询效率问题!请指教! 如何自己编写一个小功能IDE?? 关于ttable的一个小问题 Delphi版的校园二手市场,后天截稿,结果今天操蛋的老师来个没实用性 怎么防止剪贴板的内容贴进文本筐里? 請問如何得知一執行程序包含多少個圖標? 一个奇怪的问题
Shift: TShiftState; X, Y: Integer);
begin
if button=mbRight then
showmessage('KAO,是右键');
end;
Shift: TShiftState; X, Y: Integer);
begin
if button=mbRight then
showmessage('ok!');
end;
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;Shift: TShiftState; X, Y: Integer);
begin
if button=mbright then showmessage('您单击了右键!')
end;
if button=mbRight then
……
大家有空到这里看看:www.nxrs.net
procedure TForm1.FormMouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if button=mbRight then
showmessage('是右键!还有分吗?呵呵');
end;
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if button=mbRight then
showmessage('单击了鼠标右键!');
end;