List<String> s=new List<string>();
s.Add("Button 1");
s.Add("Button 2");
System.Drawing.Point screenpoint=System.Windows.Forms.Cursor.Position;
int result=Rhino.UI.Dialogs.ShowContextMenu(s, screenpoint, null);
if (result >= 0)
{
System.Windows.Forms.MessageBox.Show("你选择的是"+s[result]);
}
欢迎光临 Rhino(犀牛)中国技术支持与推广中心 (http://bbs.rhino3d.asia/) | Powered by Discuz! X3.2 |