Exemple #1
0
 void HeaderButtonPress(object ob, Gtk.ButtonPressEventArgs args)
 {
     if (args.Event.Button == 1)
     {
         frame.ShowPlaceholder();
         header.GdkWindow.Cursor         = fleurCursor;
         frame.Toplevel.KeyPressEvent   += HeaderKeyPress;
         frame.Toplevel.KeyReleaseEvent += HeaderKeyRelease;
         allowPlaceholderDocking         = true;
     }
     else if (args.Event.Button == 3)
     {
         item.ShowDockPopupMenu(args.Event.Time);
     }
 }
Exemple #2
0
 protected override bool OnButtonPressEvent(Gdk.EventButton evnt)
 {
     if (evnt.Button == 1)
     {
         if (evnt.Type == Gdk.EventType.TwoButtonPress)
         {
             it.Status = DockItemStatus.Dockable;
         }
         else
         {
             AutoShow();
         }
     }
     else if (evnt.Button == 3)
     {
         it.ShowDockPopupMenu(evnt.Time);
     }
     return(base.OnButtonPressEvent(evnt));
 }