为什么 getpopupmenu 函数不能编译通过
Var
Control : Tcontrol;
TempPop : TPopupmenu;
Begin
tempPop := Control.getpopupmenu;
end;
结果却不能得到该控件相关联的菜单
Var
Control : Tcontrol;
TempPop : TPopupmenu;
Begin
tempPop := Control.getpopupmenu;
end;
结果却不能得到该控件相关联的菜单
解决方案 »
- 为什么程序连接ORACLE正常, 但是查询不到任何记录, 表中是有信息的,用PLUS就可以;
- IdUDPClient和IdUDPServer实现最简单的功能,但还是有问题,分不多了,望帮忙
- 一个初学者的小问题等道上各位高手解决!!!!!!!!!!!!!!!!!!!!!!!
- C++调用Delphi win32动态库
- DBgrid显示问题?在线结分
- QuickReport问题
- 数据库连接上的怪现象?
- 关于一个报表的问题竟然问了一周有余没有人帮我解决??
- 读不懂,你能帮我解释一下吗?
- 请高手帮忙!如何将图片放如数据库中?
- 非MDI窗口的菜单合并问题。
- 如何写离开电脑5分钟后自动运行一个form的程序(即5分钟没有操作电脑)
Control.caption := Control.PopupMenu.Name;
Control : Tcontrol;
TempPop : TPopupmenu;
Begin
tempPop := Control.popupmenu;
end;
请提供一点源码,我试了一下仍然报错
var
s: string;
begin
s := form1.popupmenu.name; //s中保存popupmenu的name
end;
if (sender is TControl) then
with sender as TControl do
showmessage(popupmenu.name);
Procedure TForm1.Appmessage(Msg : tMsg;Handled : Boolean);
If Msg.Message = Wm_RButtonDown Then
Begin
//得到弹出菜单的名字
End;