private void memoList_ButtonPressEvent(object o, ButtonPressEventArgs args) { TreePath path; if (memoList.GetPathAtPos((int)args.Event.X, (int)args.Event.Y, out path)) { memoList.Selection.SelectPath(path); } else { memoList.Selection.UnselectAll(); } if (args.Event.Button == 3) { MemoMenu menu = new MemoMenu(); menu.Popup(GetSelectedMemo()); } }
private void memoList_ButtonPressEvent(object o, ButtonPressEventArgs args) { TreePath path; if (memoList.GetPathAtPos ((int)args.Event.X, (int)args.Event.Y, out path)) { memoList.Selection.SelectPath (path); } else { memoList.Selection.UnselectAll (); } if (args.Event.Button == 3) { MemoMenu menu = new MemoMenu(); menu.Popup(GetSelectedMemo()); } }