From 791f9fb386b2333e48e2acd938e41e27e31f8e0c Mon Sep 17 00:00:00 2001 From: John Date: Thu, 2 Feb 2023 16:25:42 +0000 Subject: [PATCH] C2023-003 Added tooltips to the buttons --- .../FindReplace.Designer.cs | 36 +++++++++++++------ .../Volian.Controls.Library/FindReplace.resx | 6 ++-- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/PROMS/Volian.Controls.Library/FindReplace.Designer.cs b/PROMS/Volian.Controls.Library/FindReplace.Designer.cs index af353054..b33046f0 100644 --- a/PROMS/Volian.Controls.Library/FindReplace.Designer.cs +++ b/PROMS/Volian.Controls.Library/FindReplace.Designer.cs @@ -99,6 +99,7 @@ namespace Volian.Controls.Library this.btnReplace.Size = new System.Drawing.Size(56, 28); this.btnReplace.TabIndex = 9; this.btnReplace.Text = "Replace"; + this.btnReplace.Tooltip = "Replace Text and\r\nStay where you are"; this.btnReplace.Visible = false; this.btnReplace.Click += new System.EventHandler(this.btnReplace_Click); // @@ -113,6 +114,7 @@ namespace Volian.Controls.Library this.btnFndRplDone.Size = new System.Drawing.Size(56, 27); this.btnFndRplDone.TabIndex = 11; this.btnFndRplDone.Text = "Done"; + this.btnFndRplDone.Tooltip = "Close this dialog"; this.btnFndRplDone.Click += new System.EventHandler(this.btnFndRplDone_Click); // // btnFindNext @@ -125,16 +127,18 @@ namespace Volian.Controls.Library this.btnFindNext.Size = new System.Drawing.Size(56, 27); this.btnFindNext.TabIndex = 7; this.btnFindNext.Text = "Find Next"; + this.btnFindNext.Tooltip = "Go To the Next\r\nFound Location"; this.btnFindNext.Click += new System.EventHandler(this.btnFindNext_Click); // // cmboReplaceText // - this.cmboReplaceText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.cmboReplaceText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.contextMenuBar1.SetContextMenuEx(this.cmboReplaceText, this.btnCmFndRpl); this.cmboReplaceText.DisplayMember = "Text"; this.cmboReplaceText.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cmboReplaceText.FormattingEnabled = true; + this.cmboReplaceText.ItemHeight = 15; this.cmboReplaceText.Location = new System.Drawing.Point(83, 41); this.cmboReplaceText.Margin = new System.Windows.Forms.Padding(2); this.cmboReplaceText.MaxDropDownItems = 10; @@ -163,12 +167,13 @@ namespace Volian.Controls.Library // // cmboFindText // - this.cmboFindText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.cmboFindText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.contextMenuBar1.SetContextMenuEx(this.cmboFindText, this.btnCmFndRpl); this.cmboFindText.DisplayMember = "Text"; this.cmboFindText.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cmboFindText.FormattingEnabled = true; + this.cmboFindText.ItemHeight = 15; this.cmboFindText.Location = new System.Drawing.Point(83, 8); this.cmboFindText.Margin = new System.Windows.Forms.Padding(2); this.cmboFindText.MaxDropDownItems = 10; @@ -177,8 +182,8 @@ namespace Volian.Controls.Library this.cmboFindText.TabIndex = 1; this.cmboFindText.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmboFindText.WatermarkText = "Enter text to find"; - this.cmboFindText.Leave += new System.EventHandler(this.cmboFindText_Leave); this.cmboFindText.TextChanged += new System.EventHandler(this.cmboFindText_TextChanged); + this.cmboFindText.Leave += new System.EventHandler(this.cmboFindText_Leave); // // labelX3 // @@ -204,6 +209,7 @@ namespace Volian.Controls.Library this.btnRplAll.Size = new System.Drawing.Size(80, 28); this.btnRplAll.TabIndex = 10; this.btnRplAll.Text = "Replace ..."; + this.btnRplAll.Tooltip = "Replace Text Then \r\nGo To Next Location"; this.btnRplAll.Visible = false; this.btnRplAll.Click += new System.EventHandler(this.btnRplAll_Click); // @@ -221,6 +227,7 @@ namespace Volian.Controls.Library this.panelEx1.Controls.Add(this.lblRplTxt); this.panelEx1.Controls.Add(this.cmboReplaceText); this.panelEx1.Controls.Add(this.cmboFindText); + this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; this.panelEx1.Dock = System.Windows.Forms.DockStyle.Top; this.panelEx1.Location = new System.Drawing.Point(0, 19); this.panelEx1.Margin = new System.Windows.Forms.Padding(2); @@ -240,6 +247,7 @@ namespace Volian.Controls.Library this.contextMenuBar1.AntiAlias = true; this.contextMenuBar1.DockSide = DevComponents.DotNetBar.eDockSide.Top; this.contextMenuBar1.Font = new System.Drawing.Font("Segoe UI", 9F); + this.contextMenuBar1.IsMaximized = false; this.contextMenuBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.btnCmFndRpl}); this.contextMenuBar1.Location = new System.Drawing.Point(115, 68); @@ -322,6 +330,10 @@ namespace Volian.Controls.Library // // // + this.galSymbols.TitleMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // this.galSymbols.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // cbxReverse @@ -428,6 +440,7 @@ namespace Volian.Controls.Library this.btnBookMrkAll.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.btnBookMrkAll.TabIndex = 8; this.btnBookMrkAll.Text = "Bookmark All"; + this.btnBookMrkAll.Tooltip = "Add a PROMS Bookmark\r\nFor Each Found Location"; this.btnBookMrkAll.Click += new System.EventHandler(this.btnBookMrkAll_Click); // // tabControl1 @@ -450,8 +463,8 @@ namespace Volian.Controls.Library new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))), 0.45F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))), 0.45F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))), 1F)}); - this.tabControl1.Controls.Add(this.tabControlPanel1); this.tabControl1.Controls.Add(this.tabControlPanel2); + this.tabControl1.Controls.Add(this.tabControlPanel1); this.tabControl1.Dock = System.Windows.Forms.DockStyle.Top; this.tabControl1.Location = new System.Drawing.Point(0, 0); this.tabControl1.Margin = new System.Windows.Forms.Padding(2); @@ -468,6 +481,7 @@ namespace Volian.Controls.Library // // tabControlPanel1 // + this.tabControlPanel1.DisabledBackColor = System.Drawing.Color.Empty; this.tabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControlPanel1.Location = new System.Drawing.Point(0, 22); this.tabControlPanel1.Margin = new System.Windows.Forms.Padding(2); @@ -478,8 +492,8 @@ namespace Volian.Controls.Library this.tabControlPanel1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); this.tabControlPanel1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.tabControlPanel1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tabControlPanel1.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tabControlPanel1.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); this.tabControlPanel1.Style.GradientAngle = 90; this.tabControlPanel1.TabIndex = 1; this.tabControlPanel1.TabItem = this.tabFind; @@ -493,6 +507,7 @@ namespace Volian.Controls.Library // // tabControlPanel2 // + this.tabControlPanel2.DisabledBackColor = System.Drawing.Color.Empty; this.tabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControlPanel2.Location = new System.Drawing.Point(0, 22); this.tabControlPanel2.Margin = new System.Windows.Forms.Padding(2); @@ -503,8 +518,8 @@ namespace Volian.Controls.Library this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); this.tabControlPanel2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tabControlPanel2.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tabControlPanel2.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); this.tabControlPanel2.Style.GradientAngle = 90; this.tabControlPanel2.TabIndex = 2; this.tabControlPanel2.TabItem = this.tabReplace; @@ -531,6 +546,7 @@ namespace Volian.Controls.Library this.Controls.Add(this.btnFindNext); this.Controls.Add(this.btnFndRplDone); this.Controls.Add(this.btnReplace); + this.DoubleBuffered = true; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Margin = new System.Windows.Forms.Padding(2); diff --git a/PROMS/Volian.Controls.Library/FindReplace.resx b/PROMS/Volian.Controls.Library/FindReplace.resx index 893dcc78..d813951f 100644 --- a/PROMS/Volian.Controls.Library/FindReplace.resx +++ b/PROMS/Volian.Controls.Library/FindReplace.resx @@ -112,12 +112,12 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + AAABAAIAICAQAAAAAADoAgAAJgAAABAQEAAAAAAAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAIAC