我想你是用POPUPMENU吧!设置窗体控件的popupmenu即可.如:
form1.edit1.popupmenu:=popupmenu1;