Present() 공개 메소드

public Present ( bool giveFocus ) : void
giveFocus bool
리턴 void
예제 #1
0
 protected override bool OnButtonPressEvent(Gdk.EventButton evnt)
 {
     if (bar.Frame.OverlayWidgetVisible)
     {
         return(false);
     }
     if (evnt.TriggersContextMenu())
     {
         it.ShowDockPopupMenu(this, evnt);
     }
     else if (evnt.Button == 1)
     {
         if (evnt.Type == Gdk.EventType.TwoButtonPress)
         {
             // Instead of changing the state of the pad here, do it when the button is released.
             // Changing the state will make this bar item to vanish before the ReleaseEvent is received, and in this
             // case the ReleaseEvent may be fired on another widget that is taking the space of this bar item.
             // This was happening for example with the feedback button.
             itemActivated = true;
         }
         else
         {
             AutoShow();
             it.Present(true);
         }
     }
     return(true);
 }
예제 #2
0
 protected override bool OnButtonPressEvent(Gdk.EventButton evnt)
 {
     if (evnt.TriggersContextMenu())
     {
         it.ShowDockPopupMenu(evnt.Time);
     }
     else if (evnt.Button == 1)
     {
         if (evnt.Type == Gdk.EventType.TwoButtonPress)
         {
             it.Status = DockItemStatus.Dockable;
         }
         else
         {
             AutoShow();
             it.Present(true);
         }
     }
     return(base.OnButtonPressEvent(evnt));
 }