protected override bool OnPopupMenu() { var popup = new PhotoPopup(); popup.Activate(Toplevel); return(true); }
void HandleButtonPressEvent(object sender, Gtk.ButtonPressEventArgs args) { if (args.Event.Type == Gdk.EventType.ButtonPress && args.Event.Button == 3) { var popup = new PhotoPopup(this); popup.Activate(Toplevel, args.Event); } }
// Event handlers. private void HandleButtonPressEvent(object sender, ButtonPressEventArgs args) { if (args.Event.Type == EventType.ButtonPress && args.Event.Button == 3) { PhotoPopup popup = new PhotoPopup(); popup.Activate(this.Toplevel, args.Event); } }
// Event handlers. void HandleButtonPressEvent(object sender, ButtonPressEventArgs args) { if (args.Event.Type == EventType.TwoButtonPress && args.Event.Button == 1 && DoubleClicked != null) { DoubleClicked(this, null); } if (args.Event.Type == EventType.ButtonPress && args.Event.Button == 3) { var popup = new PhotoPopup(); popup.Activate(Toplevel, args.Event); } }
// Event handlers. void HandleButtonPressEvent(object sender, ButtonPressEventArgs args) { if (args.Event.Type == EventType.TwoButtonPress && args.Event.Button == 1 && DoubleClicked != null) DoubleClicked (this, null); if (args.Event.Type == EventType.ButtonPress && args.Event.Button == 3) { PhotoPopup popup = new PhotoPopup (); popup.Activate (Toplevel, args.Event); } }
protected override bool OnPopupMenu() { PhotoPopup popup = new PhotoPopup (); popup.Activate (Toplevel); return true; }
private void HandleButtonPressEvent (object sender, Gtk.ButtonPressEventArgs args) { if (args.Event.Type == Gdk.EventType.ButtonPress && args.Event.Button == 3) { PhotoPopup popup = new PhotoPopup (); popup.Activate (this.Toplevel, args.Event); } }