From 4dee31414fbaf246f97ff1051bef65b3346473bd Mon Sep 17 00:00:00 2001 From: Souryo Date: Mon, 19 Dec 2016 18:25:52 -0500 Subject: [PATCH] Linux: Fixed mouse over tooltip in debugger --- GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs | 6 ++---- GUI.NET/Debugger/frmCodeTooltip.Designer.cs | 2 +- GUI.NET/Debugger/frmCodeTooltip.cs | 3 +++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs b/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs index a9063e3c..5bc0f07f 100644 --- a/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs +++ b/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs @@ -265,11 +265,9 @@ namespace Mesen.GUI.Debugger _codeTooltip = null; } _codeTooltip = new frmCodeTooltip(values); - _codeTooltip.Width = 0; - _codeTooltip.Height = 0; - _codeTooltip.Visible = false; + _codeTooltip.Left = Cursor.Position.X + 10; + _codeTooltip.Top = Cursor.Position.Y + 10; _codeTooltip.Show(this); - _codeTooltip.Visible = true; } _codeTooltip.Left = Cursor.Position.X + 10; _codeTooltip.Top = Cursor.Position.Y + 10; diff --git a/GUI.NET/Debugger/frmCodeTooltip.Designer.cs b/GUI.NET/Debugger/frmCodeTooltip.Designer.cs index 3ca38326..5ead158b 100644 --- a/GUI.NET/Debugger/frmCodeTooltip.Designer.cs +++ b/GUI.NET/Debugger/frmCodeTooltip.Designer.cs @@ -50,7 +50,6 @@ this.tlpMain.ColumnCount = 2; this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tlpMain.Dock = System.Windows.Forms.DockStyle.Fill; this.tlpMain.Location = new System.Drawing.Point(0, 0); this.tlpMain.Name = "tlpMain"; this.tlpMain.RowCount = 2; @@ -74,6 +73,7 @@ this.Name = "frmCodeTooltip"; this.ShowIcon = false; this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.Text = "frmCodeTooltip"; this.panel1.ResumeLayout(false); diff --git a/GUI.NET/Debugger/frmCodeTooltip.cs b/GUI.NET/Debugger/frmCodeTooltip.cs index f60e66de..0afa2412 100644 --- a/GUI.NET/Debugger/frmCodeTooltip.cs +++ b/GUI.NET/Debugger/frmCodeTooltip.cs @@ -53,6 +53,9 @@ namespace Mesen.GUI.Debugger i++; } + + this.Width = this.tlpMain.Width; + this.Height = this.tlpMain.Height; } } }