procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG; var Handled: Boolean); begin if Msg.message = WM_RBUTTONDOWN then begin Handled:= True; end; end;
to sunjunfeng3(这个世界分两种人,懂二进制的和不懂的) : 在Addtional页中找到ApplicationEvent组件,就可以写OnMessage代码了
pazee(耙子)(今年过年不收礼,收礼只收尿不湿) 说得很对
pplicationEvents1Message是API消息。 这样做整个 窗体的右击事件都没了。 procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG; var Handled: Boolean); begin if Msg.message = WM_RBUTTONDOWN then begin Handled:= True; end; end; 还是做个空菜单跟它关联来得简单。
var Handled: Boolean);
begin
if Msg.message = WM_RBUTTONDOWN then
begin
Handled:= True;
end;
end;
把TEdit的PopupMenu指向这个PopupMenu楼主抠门才10分,大家自然没热情。
在Addtional页中找到ApplicationEvent组件,就可以写OnMessage代码了
说得很对
这样做整个 窗体的右击事件都没了。
procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG;
var Handled: Boolean);
begin
if Msg.message = WM_RBUTTONDOWN then
begin
Handled:= True;
end;
end;
还是做个空菜单跟它关联来得简单。