コード例 #1
0
    protected void OnGraphEventsButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
    {
        try
        {
            GCurves.GCurve tmp;
            AllCurves.Curves.TryGetValue(CurveSelectBox.ActiveText, out tmp);

            double x = args.Event.X;
            double y = args.Event.Y;
            if (MovePoint.Value == true)
            {
                ProjectSaved = false;
                if (y < 0 || GraphArea.Allocation.Height - y < GrBor || x < GrBor || x > GraphArea.Allocation.Width)
                {
                    if (MovePoint.Key != 0 && MovePoint.Key != tmp.Points.Count - 1)
                    {
                        tmp.RemovePoint(MovePoint.Key);
                    }
                    RefreshGraph(false);
                }
            }

            MovePoint = new KeyValuePair<int, bool>(MovePoint.Key, false);
            
            //Fill the Valueboxes with the current value
            XValBox.Text = (tmp.Points[tmp.SelectedPoint].Value.X + 1).ToString();
            YValBox.Text = tmp.Points[tmp.SelectedPoint].Value.Y.ToString();
        }
        catch (Exception ex) { ReportError("Graph Mouse Up", ex); }
    }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: macbernick/celltronix
 protected void onDAButtonRelease(object o, ButtonReleaseEventArgs args)
 {
     if (circuit == null)
         return;
     linkingCells = false;
     circuit.stopLinking();
 }
コード例 #3
0
 public void ProcessReleaseEvent(ButtonReleaseEventArgs args)
 {
     if (swiping) {
         swiping = false;
         swipeTest = new Point((int) args.Event.X, (int) args.Event.Y);
         if (((swipeTest.X - swipeStart.X) < maxError) && ((swipeTest.X - swipeStart.X) > -maxError)) {
             if (swipeTest.Y - swipeStart.Y > minSwipeLength) { // swipe down
                 if (SwipeDetected != null) {
                     SwipeDetected(this, SwipeDirection.Down);
                 }
             } else if (swipeTest.Y - swipeStart.Y < -minSwipeLength) { // swipe up
                 if (SwipeDetected != null) {
                     SwipeDetected(this, SwipeDirection.Up);
                 }
             }
         } else if (((swipeTest.Y - swipeStart.Y) < maxError) && ((swipeTest.Y - swipeStart.Y) > -maxError)) {
             if (swipeTest.X - swipeStart.X > minSwipeLength) { // swipe right
                 if (SwipeDetected != null) {
                     SwipeDetected(this, SwipeDirection.Right);
                 }
             } else if (swipeTest.X - swipeStart.X < -minSwipeLength) { // swipe left
                 if (SwipeDetected != null) {
                     SwipeDetected(this, SwipeDirection.Left);
                 }
             }
         }
     }
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: ardaozkal/ownshot
 public static void ButtonReleaseHandler(object o, ButtonReleaseEventArgs args)
 {
     upx = args.Event.X;
     upy = args.Event.Y;
     completecrop(configpath + finalString);
     args.RetVal = true;
 }
コード例 #5
0
 protected void OnMouseReleased(object o, ButtonReleaseEventArgs args)
 {
     if (!this._allowRightClick && (int)args.Event.Button == 3)
     {
         return;
     }
     if (this.IsMouseIn && this.IsInWhenPressed)
     {
         this.CurrentState = ButtonState.Hover;
         if (args.Event.State.HasFlag((Enum)ModifierType.Button1Mask))
         {
             if (this.LeftClicked != null)
             {
                 this.LeftClicked((object)this, new LabelClickedEventArgs(this.LabelContent));
             }
         }
         else if (args.Event.State.HasFlag((Enum)ModifierType.Button3Mask) && this.RightClicked != null)
         {
             this.RightClicked((object)this, new LabelClickedEventArgs(this.LabelContent));
         }
     }
     else
     {
         this.CurrentState = ButtonState.Normal;
     }
     this.IsInWhenPressed = false;
 }
コード例 #6
0
		void HandleButtonReleaseEvent (object o, ButtonReleaseEventArgs args)
		{
			var document = IdeApp.Workbench.ActiveDocument;

			if (IdeApp.Workspace == null)
				return;
			if (document == null)
				return;
			if (document.ParsedDocument == null)
				return;

			if (args.Event.Button == LEFT_BUTTON) 
			{
				if ((args.Event.State & ModifierType.ControlMask) == ModifierType.ControlMask)
				{
					if ((args.Event.State & ModifierType.ShiftMask) == ModifierType.ShiftMask)
					{
						RemoveMarker (document.Editor.Document);
						JumpToImplementation ();
					}
					else
					{
						RemoveMarker (document.Editor.Document);
						JumpToDefinition (document);
					}
				}
			}
		}
コード例 #7
0
 private void button_Release(object o, ButtonReleaseEventArgs args)
 {
     if (this.ButtonReleaseEvent == null)
     {
         return;
     }
     this.ButtonReleaseEvent((object)this, args);
 }
コード例 #8
0
 protected void OnBtnReleaseEvent(object sender, ButtonReleaseEventArgs e)
 {
     Gdk.EventButton evnt = e.Event;
     //right click
     if (evnt.Button == 3) {
         menu.ShowAll();
         menu.Popup (null, null, null, 3, Gtk.Global.CurrentEventTime);
     }
 }
コード例 #9
0
 protected void on_tvAlbums_button_release_event(object o, Gtk.ButtonReleaseEventArgs args)
 {
     if (this.IsConnected())
     {
         if (args.Event.Button == 1)
         {
             oAlbumBrowser.GetAlbumSongs();
         }
         else if (args.Event.Button == 3)
         {
             oAlbumBrowser.ShowContextMenu();
         }
     }
 }
コード例 #10
0
 void HeaderButtonRelease(object ob, Gtk.ButtonReleaseEventArgs args)
 {
     if (args.Event.Button == 1)
     {
         frame.DockInPlaceholder(item);
         frame.HidePlaceholder();
         if (header.GdkWindow != null)
         {
             header.GdkWindow.Cursor = handCursor;
         }
         frame.Toplevel.KeyPressEvent   -= HeaderKeyPress;
         frame.Toplevel.KeyReleaseEvent -= HeaderKeyRelease;
     }
 }
コード例 #11
0
 protected void on_tvShares_button_release_event(object o, Gtk.ButtonReleaseEventArgs args)
 {
     if (this.IsConnected())
     {
         if (args.Event.Button == 1)
         {
             oShareBrowser.ExpandSelectedDirectory();
         }
         else if (args.Event.Button == 3)
         {
             oShareBrowser.ShowContextMenu();
         }
     }
 }
コード例 #12
0
 protected void on_tvArtists_button_release_event(object o, Gtk.ButtonReleaseEventArgs args)
 {
     if (this.IsConnected())
     {
         if (args.Event.Button == 1)
         {
             oArtistBrowser.ExpandeSelectedItem();
         }
         else if (args.Event.Button == 3)
         {
             oArtistBrowser.ShowContextMenu();
         }
     }
 }
コード例 #13
0
ファイル: PencilTool.cs プロジェクト: casey0102/Pinta
        protected override void OnMouseUp(Gtk.DrawingArea canvas, Gtk.ButtonReleaseEventArgs args, Cairo.PointD point)
        {
            Document doc = PintaCore.Workspace.ActiveDocument;

            if (surface_modified)
            {
                doc.History.PushNewItem(new SimpleHistoryItem(Icon, Name, undo_surface, doc.CurrentLayerIndex));
            }
            else if (undo_surface != null)
            {
                (undo_surface as IDisposable).Dispose();
            }

            surface_modified = false;
        }
コード例 #14
0
        protected override void OnMouseUp(Gtk.DrawingArea canvas, Gtk.ButtonReleaseEventArgs args, Cairo.PointD point)
        {
            // If we were dragging the text around, finish that up
            if (tracking)
            {
                Cairo.PointD delta = new Cairo.PointD(point.X - startMouseXY.X, point.Y - startMouseXY.Y);

                clickPoint = new Point((int)(startClickPoint.X + delta.X), (int)(startClickPoint.Y + delta.Y));
                CurrentTextEngine.Origin = clickPoint;

                RedrawText(false, true);
                tracking = false;
                SetCursor(null);
            }
        }
コード例 #15
0
ファイル: Program.cs プロジェクト: yaegerbomb/BlackOstrich
        //when we have let go of our mouse button
        void DragEnd(object sender, Gtk.ButtonReleaseEventArgs args)
        {
            mouseEnd         = new Gdk.Point((int)Math.Floor(args.Event.X), (int)Math.Floor(args.Event.Y));
            topRightCoords   = new Gdk.Point(mouseEnd.X, mouseStart.Y);
            bottomLeftCoords = new Gdk.Point(mouseStart.X, mouseEnd.Y);

            Console.WriteLine("-------------------------------------");
            Console.WriteLine("Mouse Released");
            Console.WriteLine("Mouse End Point: ({0}, {1})", mouseEnd.X, mouseEnd.Y);
            Console.WriteLine("Top Right Point: ({0}, {1})", topRightCoords.X, topRightCoords.Y);
            Console.WriteLine("Bottom Left Point: ({0}, {1})", bottomLeftCoords.X, bottomLeftCoords.Y);
            Console.WriteLine("-------------------------------------");

            //all about dat crop
            DisplayCroppedImage();
        }
コード例 #16
0
        protected override void BindedWidget_ButtonReleaseEvent(object sender, ButtonReleaseEventArgs evnt)
        {
            base.BindedWidget_ButtonReleaseEvent (sender, evnt);

            if(Value)
            {
                int x, y;
                ParentWindow.GetOrigin (out x, out y);
                x += Allocation.X;
                y += Allocation.Bottom;

                ShowAt (x, y);
            }
            else
            {
                KillMenu (true);
            }
        }
コード例 #17
0
        void HandleButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
        {
            var doc = IdeApp.Workbench.ActiveDocument;

            if (args.Event.Button != 1
                || !IsCtrlPush(args.Event.State)
                || doc == null)
                return;

            ResolveResult resolveResult;
            var item = CurrentRefactoryOperationsHandler.GetItem(doc, out resolveResult);

            if (item == null)
                return;

            if (item is INamedElement)
                IdeApp.ProjectOperations.JumpToDeclaration((INamedElement)item);
            else if (item is IVariable)
                IdeApp.ProjectOperations.JumpToDeclaration((IVariable)item);
        }
コード例 #18
0
 protected void OnButtonRelease(object o, ButtonReleaseEventArgs args)
 {
     if (this.isMouseIn)
     {
         if (this.isInWhenPressed)
         {
             this.SetButtonStyle(CcsColorButton.BtnState.Normal);
             this.ColorClick();
         }
         else
         {
             this.SetButtonStyle(CcsColorButton.BtnState.Hover);
         }
     }
     else
     {
         this.SetButtonStyle(CcsColorButton.BtnState.Normal);
     }
     this.isInWhenPressed = false;
 }
コード例 #19
0
ファイル: PlayerView.cs プロジェクト: kuggaa/longomatch
        void HandleTimescaleButtonRelease(object o, Gtk.ButtonReleaseEventArgs args)
        {
            if (args.Event.Button == 1)
            {
                args.Event.SetButton(2);
            }
            else
            {
                args.Event.SetButton(1);
            }

            if (seeking)
            {
                seeking            = false;
                Player.IgnoreTicks = false;
                if (IsPlayingPrevState)
                {
                    Player.Play();
                }
            }
        }
コード例 #20
0
ファイル: SelectTool.cs プロジェクト: xxgreg/Pinta
        protected override void OnMouseUp(DrawingArea canvas, ButtonReleaseEventArgs args, Cairo.PointD point)
        {
            double x = point.X;
            double y = point.Y;

            // If the user didn't move the mouse, they want to deselect
            int tolerance = 2;

            if (Math.Abs (shape_origin.X - x) <= tolerance && Math.Abs (shape_origin.Y - y) <= tolerance) {
                PintaCore.Actions.Edit.Deselect.Activate ();
                hist.Dispose ();
                hist = null;
            } else {
                if (hist != null)
                    PintaCore.History.PushNewItem (hist);

                hist = null;
            }

            is_drawing = false;
        }
コード例 #21
0
ファイル: TopTracks.cs プロジェクト: gsterjov/fusemc
        //a track was selected
        private void track_clicked(object o, ButtonReleaseEventArgs args)
        {
            LinkLabel label = (LinkLabel)o;

            QueryInfo query = new QueryInfo (Key.Artist(main.Artist), Key.Title(label.Link));
            main.LoadContent (query, typeof (SimilarTracks));
        }
コード例 #22
0
	void tree_ButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
	{
		string formToOpen="";
		TreeSelection selection = (o as TreeView).Selection;

		TreeModel model;

		if(selection.GetSelected(out model, out iter))
		{
			formToOpen=model.GetValue(iter,1).ToString();
			//Console.WriteLine(formToOpen);
		}
			
	}
コード例 #23
0
 protected override void BindedWidget_ButtonReleaseEvent(object sender, ButtonReleaseEventArgs evnt)
 {
     ProcessEvent (evnt.Event);
     Click ();
 }
コード例 #24
0
 private void HandleButtonReleaseEvent(object o, Gtk.ButtonReleaseEventArgs args)
 {
     Sheet.Controller.HandleEvent(args.Event);
 }
コード例 #25
0
ファイル: FrameworkTree.cs プロジェクト: moscrif/ide
 void OnButtonRelease(object obj, ButtonReleaseEventArgs args)
 {
 }
コード例 #26
0
ファイル: TableViewBackend.cs プロジェクト: modulexcite/xwt
 protected override ButtonEventArgs GetButtonReleaseEventArgs(ButtonReleaseEventArgs args)
 {
     int x, y;
     Widget.ConvertBinWindowToWidgetCoords ((int)args.Event.X, (int)args.Event.Y, out x, out y);
     var xwt_args = base.GetButtonReleaseEventArgs (args);
     xwt_args.X = x;
     xwt_args.Y = y;
     return xwt_args;
 }
コード例 #27
0
ファイル: SearchEntry.cs プロジェクト: mono-soc-2011/banshee
        private void OnButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
        {
            if(args.Event.Button != 1) {
                return;
            }

            entry.HasFocus = true;

            if(o == filter_button) {
                ShowMenu(args.Event.Time);
            }
        }
コード例 #28
0
ファイル: MainWindow.cs プロジェクト: ly774508966/glompVR
 protected virtual void OnWidgetClick(object o, Gtk.ButtonReleaseEventArgs args)
 {
     System.Diagnostics.Debug.WriteLine("Widget clicked");
     glwidget1.GrabFocus();
     glwidget1.HasFocus = true;
 }
コード例 #29
0
ファイル: BaseTool.cs プロジェクト: hsmith/Pinta
 protected virtual void OnMouseUp(DrawingArea canvas, Gtk.ButtonReleaseEventArgs args, Cairo.PointD point)
 {
 }
コード例 #30
0
        protected override void OnMouseUp(Gtk.DrawingArea canvas, Gtk.ButtonReleaseEventArgs args, Cairo.PointD point)
        {
            Document doc = PintaCore.Workspace.ActiveDocument;

            doc.ToolLayer.Hidden = true;

            if (surface_modified)
            {
                PintaCore.History.PushNewItem(new SimpleHistoryItem(Icon, Name, undo_surface, doc.CurrentUserLayerIndex));
            }
            else if (undo_surface != null)
            {
                (undo_surface as IDisposable).Dispose();
            }

            surface_modified = false;
            ImageSurface surf = doc.CurrentUserLayer.Surface;

            using (Context g = new Context(surf)) {
                g.AppendPath(doc.Selection.SelectionPath);
                g.FillRule = FillRule.EvenOdd;
                g.Clip();

                g.Antialias = UseAntialiasing ? Antialias.Subpixel : Antialias.None;

                g.SetDash(DashPatternBox.GenerateDashArray(dashPattern, BrushWidth), 0.0);

                if (path != null)
                {
                    g.AppendPath(path);
                    (path as IDisposable).Dispose();
                    path = null;
                }

                g.ClosePath();
                g.LineWidth = BrushWidth;
                g.FillRule  = FillRule.EvenOdd;

                if (FillShape && StrokeShape)
                {
                    g.SetSourceColor(fill_color);
                    g.FillPreserve();
                    g.SetSourceColor(outline_color);
                    g.Stroke();
                }
                else if (FillShape)
                {
                    g.SetSourceColor(outline_color);
                    g.FillPreserve();
                    g.SetSourceColor(outline_color);
                    g.Stroke();
                }
                else
                {
                    g.SetSourceColor(outline_color);
                    g.Stroke();
                }
            }

            doc.Workspace.Invalidate();
        }
コード例 #31
0
        void HeaderButtonRelease(object ob, Gtk.ButtonReleaseEventArgs args)
        {
            //Console.WriteLine("HeaderButtonRelease");
            if (args.Event.Button == 1)
            {
                Frame.HidePlaceholder();

                if (header.Window != null)
                {
                    header.Window.Cursor = handCursor;
                }

                if (Frame.TargetContainer != null)
                {
                    //check if we are in notebook mode
//					if ((CurrentContainer != null) && (CurrentContainer.FrameNotebook.Visible == true))
//					{
//						//notebok mode
//						if ((frame.TargetContainer == CurrentContainer) && (frame.TargetAlign != ItemAlignment.Center))
//						{
//							//switch to paned mode
//							CurrentContainer.hideNotebook(frame.TargetAlign);
//						} else
//						{
//							CurrentContainer.removePage(this);
//						}
//
//
//
//					}  else
//					{
//						//panedbox mode
//
//						PanedBox.removeItem(this);
//
//
//					}

                    //check if we have to remove something
                    if ((CurrentContainer != null) && (Frame.TargetContainer != CurrentContainer))
                    {
                        if (CurrentContainer.FrameNotebook.Visible == true)
                        {
                            CurrentContainer.removePage(this);                                  //remove Page
                        }
                        else
                        {
                            PanedBox.removeItem(this);                             //remove Item
                        }
                    }

                    //Console.WriteLine("alg:" + frame.TargetAlign);
                    //add the new item
                    if (Frame.TargetContainer.FrameNotebook.Visible == true)
                    {
                        this.Reparent(null);
                        this.Parent = null;
                        //Console.WriteLine("add1 " + this.Name + " to "  + Frame.TargetContainer.Name);
                        frame.TargetContainer.addPage(this, Frame.TargetAlign);
                        this.Visible = true;
                    }
                    else
                    {
                        this.Reparent(null);
                        //Console.WriteLine("add2 " + this.Name + " to "  + Frame.TargetContainer.Name);
                        Frame.TargetContainer.addItem(this, Frame.TargetAlign);
                        this.Visible = true;
                    }
                }
            }
        }
コード例 #32
0
ファイル: ColorGradientWidget.cs プロジェクト: ywscr/Pinta
 void HandleButtonReleaseEvent(object o, Gtk.ButtonReleaseEventArgs args)
 {
     ValueIndex = -1;
 }
コード例 #33
0
        private void HandleButtonReleaseEvent(object sender, ButtonReleaseEventArgs args)
        {
            if (!this.CanApplyMarker()) return;

            if (args.Event.Button == LeftMouseButton && ((args.Event.State & ModifierType.Mod1Mask) == ModifierType.Mod1Mask))
            {
                var document = IdeApp.Workbench.ActiveDocument;
                var location = document.Editor.Caret.Location;

                int offset = document.Editor.LocationToOffset(location);
                int start = document.Editor.FindCurrentWordStart(offset);
                int end = document.Editor.FindCurrentWordEnd(offset);

                if (end - start <= 0) return;

                var element = this.GetCurrentElement(document, offset);

                if (element != null)
                {
                    NavigationTools.DropMarkerAtCaret();
                    this.RemoveMarker();
                    IdeApp.ProjectOperations.JumpToDeclaration(element, true);
                }
                else
                {
                    var variable = this.GetCurrentVariable(document, offset);
                    if (variable != null)
                    {
                        NavigationTools.DropMarkerAtCaret();
                        this.RemoveMarker();
                        IdeApp.ProjectOperations.JumpToDeclaration(variable);
                    }
                }
            }
        }
コード例 #34
0
 void DrawButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
 {
     switch (args.Event.Button) {
         case 1:
         _button = (_button | MouseButton.Left) ^ MouseButton.Left;
         break;
         case 2:
         _button = (_button | MouseButton.Middle) ^ MouseButton.Middle;
         break;
         case 3:
         _button = (_button | MouseButton.Right) ^ MouseButton.Right;
         break;
         default:
         break;
     }
 }
コード例 #35
0
 public void CustomImageView_Release(object o, ButtonReleaseEventArgs args)
 {
     this.IsShowCustomStyle = new bool?(false);
 }
コード例 #36
0
ファイル: list.cs プロジェクト: alfredodev/mono-tools
	void ButtonReleaseEventHandler (object o, ButtonReleaseEventArgs a)
	{
		if (a.Event.Button == 1)
			is_dragging = false;

		old_selected = Selected;
	}
コード例 #37
0
    protected void OnDaButtonReleaseEvent(object o, Gtk.ButtonReleaseEventArgs args)
    {
        if (args.Event.Button != 1)
        {
            return;
        }

        dragging         = false;
        GdkWindow.Cursor = new Gdk.Cursor(Gdk.CursorType.Arrow);
        mousePosition    = new Point((int)args.Event.X, (int)args.Event.Y);

        if (rOutColumnTop.Contains(mousePosition) && table.Player1.OutedPieces != 0)
        {
            table.MoveOutedPiece(table.Player1.MovesLeft[0]);
        }
        else if (rOutColumnBottom.Contains(mousePosition) && table.Player2.OutedPieces != 0)
        {
            table.MoveOutedPiece(table.Player2.MovesLeft[0]);
        }
        else
        {
            for (int i = 0; i < 24; i++)
            {
                if (rTable[i].Contains(mousePosition))
                {
                    Console.WriteLine(dragBeginCol + " " + i);
                    try
                    {
                        if (table.TableValues[dragBeginCol] > 0)
                        {
                            if (dragBeginCol == i)
                            {
                                table.MovePiece(dragBeginCol, table.Player1.MovesLeft[0]);
                            }
                            else
                            {
                                table.MovePiece(dragBeginCol, i - dragBeginCol);
                            }

                            Console.WriteLine(i - dragBeginCol);
                        }
                        else
                        {
                            if (dragBeginCol == i)
                            {
                                table.MovePiece(dragBeginCol, table.Player2.MovesLeft[0]);
                            }
                            else
                            {
                                table.MovePiece(dragBeginCol, dragBeginCol - i);
                            }

                            Console.WriteLine(dragBeginCol - i);
                        }
                    }
                    catch (PieceMoveException pme)
                    {
                        MessageBox.Show(pme.Message, "Invalid move", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }
            }
        }

        DrawTable(da.GdkWindow);
    }
コード例 #38
0
 private void base_ButtonReleaseEvent(object sender, Gtk.ButtonReleaseEventArgs args)
 {
     ResetDrag();
 }
コード例 #39
0
ファイル: VolumeButton.cs プロジェクト: mono-soc-2011/banshee
 private void OnPlusMinusButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
 {
     if(click_id != 0) {
         GLib.Source.Remove(click_id);
         click_id = 0;
     }
 }
コード例 #40
0
ファイル: TrayPopup.cs プロジェクト: gsterjov/fusemc
 // user clicked on the window
 void mouse_clicked(object o, ButtonReleaseEventArgs args)
 {
     Hide ();
 }
コード例 #41
0
ファイル: Gallery.cs プロジェクト: MASGAU/gtk-sharp-ribbon
        private void OnButtonReleased(object o, ButtonReleaseEventArgs args)
        {
            if(popup != null) {
                Grab.Remove(popup);
                Gdk.Pointer.Ungrab(0);
                Gdk.Keyboard.Ungrab(0);

                popup.Hide ();
                popup.Destroy();
                popup = null;
            }
        }
コード例 #42
0
ファイル: BaseTool.cs プロジェクト: manish/Pinta
 public void DoMouseUp(DrawingArea canvas, ButtonReleaseEventArgs args, Cairo.PointD point)
 {
     if (MouseReleased != null)
         MouseReleased (point.X, point.Y, args.Event.State);
     OnMouseUp (canvas, args, point);
 }
コード例 #43
0
 protected virtual void OnWidgetClick(object o, Gtk.ButtonReleaseEventArgs args)
 {
     Console.WriteLine("Widget clicked");
     glwidget1.GrabFocus();
     glwidget1.HasFocus = true;
 }
コード例 #44
0
ファイル: executeAuto.cs プロジェクト: GNOME/chronojump
    private void on_treeview_load_button_release_event(object o, ButtonReleaseEventArgs args)
    {
        Gdk.EventButton e = args.Event;
        if (e.Button == 3) {
            Menu myMenu = new Menu ();
            Gtk.MenuItem myItem;

            myItem = new MenuItem (Catalog.GetString("Delete selected"));
            myItem.Activated += on_delete_selected_row_clicked;
            myMenu.Attach( myItem, 0, 1, 0, 1 );

            myMenu.Popup();
            myMenu.ShowAll();
        }
    }
コード例 #45
0
ファイル: ExplorerView.cs プロジェクト: hut104/ApsimX
 private void OnButtonUp(object sender, ButtonReleaseEventArgs e)
 {
     if (e.Event.Button == 3)
         Popup.Popup();
 }
コード例 #46
0
		void OnButtonRelease (object obj, ButtonReleaseEventArgs args) {
			LeaveDragMode (args.Event.Time);
		}
コード例 #47
0
 protected virtual void OnDrawingareaButtonReleaseEvent(object o, Gtk.ButtonReleaseEventArgs args)
 {
     drawingarea.QueueDraw();
     lastx = -1;
     lasty = -1;
 }
コード例 #48
0
        private void HandleGradientButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
        {
            button_down = false;

            if (skip_counter != 0)
                UpdateLevels ();
        }
コード例 #49
0
ファイル: PaintBrushTool.cs プロジェクト: linuxmhall/Pinta
 protected override void OnMouseUp(DrawingArea canvas, ButtonReleaseEventArgs args, PointD point)
 {
     base.OnMouseUp (canvas, args, point);
     active_brush.DoMouseUp ();
 }
コード例 #50
0
ファイル: GLWidget.cs プロジェクト: istepaniuk/cadmio
 private void OnButtonReleaseEvent(object sender, ButtonReleaseEventArgs a)
 {
     if (a.Event.Button == 1) {
         button1Pressed = false;
     }
 }
コード例 #51
0
ファイル: BaseTool.cs プロジェクト: deckarep/Pinta
 public void DoMouseUp(DrawingArea canvas, ButtonReleaseEventArgs args, Cairo.PointD point)
 {
     OnMouseUp (canvas, args, point);
 }
コード例 #52
0
ファイル: Theatre.cs プロジェクト: gsterjov/fusemc
        // user right clicked on the video widget
        private void video_button_release(object o, ButtonReleaseEventArgs args)
        {
            if (args.Event.Button != 3)
                return;

            VideoContextMenu menu = new VideoContextMenu ();
            menu.ShowAll ();
            menu.Popup ();
        }
コード例 #53
0
 void OnSizeButtonRelease(object ob, Gtk.ButtonReleaseEventArgs args)
 {
     resizing = false;
 }