右键按下的事件是什么?

tohell 2002-04-19 03:18:58
是不是包括在click中的?那样的话该如何判断?
...全文
45 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
make11111 2002-04-19
  • 打赏
  • 举报
回复
if Button = mbRight then //右键
王集鹄 2002-04-19
  • 打赏
  • 举报
回复
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if Button = mbRight then
ShowMessage('测试1');
end;
//or
procedure TForm1.FormContextPopup(Sender: TObject; MousePos: TPoint;
var Handled: Boolean);
begin
ShowMessage('测试2');
end;
jamsir 2002-04-19
  • 打赏
  • 举报
回复
onclick
Liujc 2002-04-19
  • 打赏
  • 举报
回复
在OnMouseDown事件中判断
if Button = mbRight then //右键

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧