//Panel3是SpeedButton4的容器,PopupMenu3是要弹出的菜单
//效果是按按钮后在按钮的下方弹出菜单
procedure Tfm_ProjectTree.SpeedButton4Click(Sender: TObject);
var
P: TPoint;
begin
P := Panel3.ClientToScreen(Point(SpeedButton4.Left,SpeedButton4.Top+SpeedButton4.Height));
PopupMenu3.Popup(P.X-1, P.Y);
end;