diff --git a/GUI/MainForm.Designer.cs b/GUI/MainForm.Designer.cs index 7067ba9..98e98be 100644 --- a/GUI/MainForm.Designer.cs +++ b/GUI/MainForm.Designer.cs @@ -77,6 +77,8 @@ namespace OpenHardwareMonitor.GUI { this.saveReportMenuItem = new System.Windows.Forms.MenuItem(); this.sumbitReportMenuItem = new System.Windows.Forms.MenuItem(); this.MenuItem2 = new System.Windows.Forms.MenuItem(); + this.resetMenuItem = new System.Windows.Forms.MenuItem(); + this.menuItem6 = new System.Windows.Forms.MenuItem(); this.exitMenuItem = new System.Windows.Forms.MenuItem(); this.viewMenuItem = new System.Windows.Forms.MenuItem(); this.resetMinMaxMenuItem = new System.Windows.Forms.MenuItem(); @@ -108,8 +110,6 @@ namespace OpenHardwareMonitor.GUI { this.splitContainer = new OpenHardwareMonitor.GUI.SplitContainerAdv(); this.treeView = new Aga.Controls.Tree.TreeViewAdv(); this.plotPanel = new OpenHardwareMonitor.GUI.PlotPanel(); - this.resetMenuItem = new System.Windows.Forms.MenuItem(); - this.menuItem6 = new System.Windows.Forms.MenuItem(); this.splitContainer.Panel1.SuspendLayout(); this.splitContainer.Panel2.SuspendLayout(); this.splitContainer.SuspendLayout(); @@ -165,6 +165,7 @@ namespace OpenHardwareMonitor.GUI { this.nodeTextBoxText.LeftMargin = 3; this.nodeTextBoxText.ParentColumn = this.sensor; this.nodeTextBoxText.Trimming = System.Drawing.StringTrimming.EllipsisCharacter; + this.nodeTextBoxText.UseCompatibleTextRendering = true; // // nodeTextBoxValue // @@ -173,6 +174,7 @@ namespace OpenHardwareMonitor.GUI { this.nodeTextBoxValue.LeftMargin = 3; this.nodeTextBoxValue.ParentColumn = this.value; this.nodeTextBoxValue.Trimming = System.Drawing.StringTrimming.EllipsisCharacter; + this.nodeTextBoxValue.UseCompatibleTextRendering = true; // // nodeTextBoxMin // @@ -181,6 +183,7 @@ namespace OpenHardwareMonitor.GUI { this.nodeTextBoxMin.LeftMargin = 3; this.nodeTextBoxMin.ParentColumn = this.min; this.nodeTextBoxMin.Trimming = System.Drawing.StringTrimming.EllipsisCharacter; + this.nodeTextBoxMin.UseCompatibleTextRendering = true; // // nodeTextBoxMax // @@ -189,6 +192,7 @@ namespace OpenHardwareMonitor.GUI { this.nodeTextBoxMax.LeftMargin = 3; this.nodeTextBoxMax.ParentColumn = this.max; this.nodeTextBoxMax.Trimming = System.Drawing.StringTrimming.EllipsisCharacter; + this.nodeTextBoxMax.UseCompatibleTextRendering = true; // // mainMenu // @@ -227,6 +231,17 @@ namespace OpenHardwareMonitor.GUI { this.MenuItem2.Index = 2; this.MenuItem2.Text = "-"; // + // resetMenuItem + // + this.resetMenuItem.Index = 3; + this.resetMenuItem.Text = "Reset"; + this.resetMenuItem.Click += new System.EventHandler(this.resetClick); + // + // menuItem6 + // + this.menuItem6.Index = 4; + this.menuItem6.Text = "-"; + // // exitMenuItem // this.exitMenuItem.Index = 5; @@ -448,6 +463,7 @@ namespace OpenHardwareMonitor.GUI { this.treeView.UseColumns = true; this.treeView.NodeMouseDoubleClick += new System.EventHandler(this.treeView_NodeMouseDoubleClick); this.treeView.Click += new System.EventHandler(this.treeView_Click); + this.treeView.MouseMove += new System.Windows.Forms.MouseEventHandler(this.treeView_MouseMove); // // plotPanel // @@ -457,17 +473,6 @@ namespace OpenHardwareMonitor.GUI { this.plotPanel.Size = new System.Drawing.Size(386, 124); this.plotPanel.TabIndex = 0; // - // resetMenuItem - // - this.resetMenuItem.Index = 3; - this.resetMenuItem.Text = "Reset"; - this.resetMenuItem.Click += new System.EventHandler(this.resetClick); - // - // menuItem6 - // - this.menuItem6.Index = 4; - this.menuItem6.Text = "-"; - // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); diff --git a/GUI/MainForm.cs b/GUI/MainForm.cs index 178b2fa..b76a7a2 100644 --- a/GUI/MainForm.cs +++ b/GUI/MainForm.cs @@ -120,7 +120,7 @@ namespace OpenHardwareMonitor.GUI { int p = (int)Environment.OSVersion.Platform; if ((p == 4) || (p == 128)) { // Unix - treeView.RowHeight = Math.Max(treeView.RowHeight, 17); + treeView.RowHeight = Math.Max(treeView.RowHeight, 18); splitContainer.BorderStyle = BorderStyle.None; splitContainer.Border3DStyle = Border3DStyle.Adjust; splitContainer.SplitterWidth = 4; @@ -131,7 +131,7 @@ namespace OpenHardwareMonitor.GUI { minTrayMenuItem.Visible = false; startMinMenuItem.Visible = false; } else { // Windows - treeView.RowHeight = Math.Max(treeView.Font.Height + 1, 17); + treeView.RowHeight = Math.Max(treeView.Font.Height + 1, 18); gadget = new SensorGadget(computer, settings, unitManager); gadget.HideShowCommand += hideShowClick; @@ -627,5 +627,11 @@ namespace OpenHardwareMonitor.GUI { // restore the MainIcon setting systemTray.IsMainIconEnabled = minimizeToTray.Value; } + + private void treeView_MouseMove(object sender, MouseEventArgs e) { + if ((e.Button & (MouseButtons.Left | MouseButtons.Right)) > 0) { + treeView.SelectedNode = treeView.GetNodeAt(e.Location); + } + } } } diff --git a/GUI/MainForm.resx b/GUI/MainForm.resx index fd97651..9cb27cf 100644 --- a/GUI/MainForm.resx +++ b/GUI/MainForm.resx @@ -118,16 +118,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - 226, 17 + 373, 17 - - 334, 17 - - + 17, 17 + + 164, 17 + - 146, 17 + 293, 17 diff --git a/GUI/SensorNode.cs b/GUI/SensorNode.cs index 9d721bf..60a3106 100644 --- a/GUI/SensorNode.cs +++ b/GUI/SensorNode.cs @@ -67,7 +67,7 @@ namespace OpenHardwareMonitor.GUI { this.settings = settings; this.unitManager = unitManager; switch (sensor.SensorType) { - case SensorType.Voltage: format = "{0:F2} V"; break; + case SensorType.Voltage: format = "{0:F3} V"; break; case SensorType.Clock: format = "{0:F0} MHz"; break; case SensorType.Load: format = "{0:F1} %"; break; case SensorType.Temperature: format = "{0:F1} °C"; break;