jrq (2002-5-10 19:17:00)
--------------------------------------------------------
有以前的一段小代码,供你参考:
procedure TForm1.BitBtn1Click(Sender: TObject);
var p:tpoint;
begin
p.x:=BitBtn1.Left;
p.y:=BitBtn1.top+bitbtn1.Height;
p:=clienttoscreen(p);
PopupMenu1.Popup(p.x,p.y);
end;