Example #1
0
        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());
            }
        }
Example #2
0
 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());
     }
 }