From 7a25166eee0f40970ee4897c696b5288db10ba40 Mon Sep 17 00:00:00 2001 From: Smurf-iv Date: Sun, 27 Feb 2022 09:42:32 +0000 Subject: [PATCH] - Add `BindingNavigator` to Dialog tab - Add enabled and disabled dialog modes - impements #27 --- .../FormChromeTMS.Designer.cs | 241 ++++++++++++++---- .../Source/Palette Designer/FormChromeTMS.cs | 14 + .../Palette Designer/FormChromeTMS.resx | 75 ++++-- .../Source/Palette Designer/MainForm.cs | 28 +- 4 files changed, 280 insertions(+), 78 deletions(-) diff --git a/Applications/Source/Palette Designer/FormChromeTMS.Designer.cs b/Applications/Source/Palette Designer/FormChromeTMS.Designer.cs index 5a72a0d..2569f04 100644 --- a/Applications/Source/Palette Designer/FormChromeTMS.Designer.cs +++ b/Applications/Source/Palette Designer/FormChromeTMS.Designer.cs @@ -28,6 +28,7 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormChromeTMS)); this.tmsMenuStrip = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -73,16 +74,29 @@ private void InitializeComponent() this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); this.helpToolStripButton = new System.Windows.Forms.ToolStripButton(); this.tmsToolStripContainer = new System.Windows.Forms.ToolStripContainer(); + this.progressBar1 = new System.Windows.Forms.ProgressBar(); + this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components); + this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); + this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); + this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); this.tmsMenuStrip.SuspendLayout(); this.tmsStatusStrip.SuspendLayout(); this.tmsToolStrip.SuspendLayout(); this.tmsToolStripContainer.TopToolStripPanel.SuspendLayout(); this.tmsToolStripContainer.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit(); + this.bindingNavigator1.SuspendLayout(); this.SuspendLayout(); // // tmsMenuStrip // this.tmsMenuStrip.Font = new System.Drawing.Font("Segoe UI", 9F); + this.tmsMenuStrip.ImageScalingSize = new System.Drawing.Size(20, 20); this.tmsMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem, this.editToolStripMenuItem, @@ -90,7 +104,7 @@ private void InitializeComponent() this.helpToolStripMenuItem}); this.tmsMenuStrip.Location = new System.Drawing.Point(0, 0); this.tmsMenuStrip.Name = "tmsMenuStrip"; - this.tmsMenuStrip.Size = new System.Drawing.Size(256, 24); + this.tmsMenuStrip.Size = new System.Drawing.Size(341, 30); this.tmsMenuStrip.TabIndex = 0; this.tmsMenuStrip.Text = "menuStrip1"; // @@ -108,7 +122,7 @@ private void InitializeComponent() this.toolStripSeparator2, this.exitToolStripMenuItem}); this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; - this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); + this.fileToolStripMenuItem.Size = new System.Drawing.Size(46, 24); this.fileToolStripMenuItem.Text = "&File"; // // newToolStripMenuItem @@ -116,7 +130,7 @@ private void InitializeComponent() this.newToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripMenuItem.Image"))); this.newToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; this.newToolStripMenuItem.Name = "newToolStripMenuItem"; - this.newToolStripMenuItem.Size = new System.Drawing.Size(143, 22); + this.newToolStripMenuItem.Size = new System.Drawing.Size(177, 26); this.newToolStripMenuItem.Text = "&New"; // // openToolStripMenuItem @@ -124,32 +138,32 @@ private void InitializeComponent() this.openToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripMenuItem.Image"))); this.openToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; this.openToolStripMenuItem.Name = "openToolStripMenuItem"; - this.openToolStripMenuItem.Size = new System.Drawing.Size(143, 22); + this.openToolStripMenuItem.Size = new System.Drawing.Size(177, 26); this.openToolStripMenuItem.Text = "&Open"; // // toolStripSeparator // this.toolStripSeparator.Name = "toolStripSeparator"; - this.toolStripSeparator.Size = new System.Drawing.Size(140, 6); + this.toolStripSeparator.Size = new System.Drawing.Size(174, 6); // // saveToolStripMenuItem // this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); this.saveToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; - this.saveToolStripMenuItem.Size = new System.Drawing.Size(143, 22); + this.saveToolStripMenuItem.Size = new System.Drawing.Size(177, 26); this.saveToolStripMenuItem.Text = "&Save"; // // saveAsToolStripMenuItem // this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem"; - this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(143, 22); + this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(177, 26); this.saveAsToolStripMenuItem.Text = "Save &As"; // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(140, 6); + this.toolStripSeparator1.Size = new System.Drawing.Size(174, 6); // // printToolStripMenuItem // @@ -157,7 +171,7 @@ private void InitializeComponent() this.printToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; this.printToolStripMenuItem.Name = "printToolStripMenuItem"; this.printToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P))); - this.printToolStripMenuItem.Size = new System.Drawing.Size(143, 22); + this.printToolStripMenuItem.Size = new System.Drawing.Size(177, 26); this.printToolStripMenuItem.Text = "&Print"; // // printPreviewToolStripMenuItem @@ -165,18 +179,18 @@ private void InitializeComponent() this.printPreviewToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printPreviewToolStripMenuItem.Image"))); this.printPreviewToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; this.printPreviewToolStripMenuItem.Name = "printPreviewToolStripMenuItem"; - this.printPreviewToolStripMenuItem.Size = new System.Drawing.Size(143, 22); + this.printPreviewToolStripMenuItem.Size = new System.Drawing.Size(177, 26); this.printPreviewToolStripMenuItem.Text = "Print Pre&view"; // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(140, 6); + this.toolStripSeparator2.Size = new System.Drawing.Size(174, 6); // // exitToolStripMenuItem // this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; - this.exitToolStripMenuItem.Size = new System.Drawing.Size(143, 22); + this.exitToolStripMenuItem.Size = new System.Drawing.Size(177, 26); this.exitToolStripMenuItem.Text = "E&xit"; // // editToolStripMenuItem @@ -191,27 +205,27 @@ private void InitializeComponent() this.toolStripSeparator4, this.selectAllToolStripMenuItem}); this.editToolStripMenuItem.Name = "editToolStripMenuItem"; - this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20); + this.editToolStripMenuItem.Size = new System.Drawing.Size(49, 24); this.editToolStripMenuItem.Text = "&Edit"; // // undoToolStripMenuItem // this.undoToolStripMenuItem.Name = "undoToolStripMenuItem"; this.undoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z))); - this.undoToolStripMenuItem.Size = new System.Drawing.Size(144, 22); + this.undoToolStripMenuItem.Size = new System.Drawing.Size(179, 26); this.undoToolStripMenuItem.Text = "&Undo"; // // redoToolStripMenuItem // this.redoToolStripMenuItem.Name = "redoToolStripMenuItem"; this.redoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y))); - this.redoToolStripMenuItem.Size = new System.Drawing.Size(144, 22); + this.redoToolStripMenuItem.Size = new System.Drawing.Size(179, 26); this.redoToolStripMenuItem.Text = "&Redo"; // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(141, 6); + this.toolStripSeparator3.Size = new System.Drawing.Size(176, 6); // // cutToolStripMenuItem // @@ -219,7 +233,7 @@ private void InitializeComponent() this.cutToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; this.cutToolStripMenuItem.Name = "cutToolStripMenuItem"; this.cutToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X))); - this.cutToolStripMenuItem.Size = new System.Drawing.Size(144, 22); + this.cutToolStripMenuItem.Size = new System.Drawing.Size(179, 26); this.cutToolStripMenuItem.Text = "Cu&t"; // // copyToolStripMenuItem @@ -228,7 +242,7 @@ private void InitializeComponent() this.copyToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; this.copyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C))); - this.copyToolStripMenuItem.Size = new System.Drawing.Size(144, 22); + this.copyToolStripMenuItem.Size = new System.Drawing.Size(179, 26); this.copyToolStripMenuItem.Text = "&Copy"; // // pasteToolStripMenuItem @@ -237,18 +251,18 @@ private void InitializeComponent() this.pasteToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; this.pasteToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V))); - this.pasteToolStripMenuItem.Size = new System.Drawing.Size(144, 22); + this.pasteToolStripMenuItem.Size = new System.Drawing.Size(179, 26); this.pasteToolStripMenuItem.Text = "&Paste"; // // toolStripSeparator4 // this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(141, 6); + this.toolStripSeparator4.Size = new System.Drawing.Size(176, 6); // // selectAllToolStripMenuItem // this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; - this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(144, 22); + this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(179, 26); this.selectAllToolStripMenuItem.Text = "Select &All"; // // toolsToolStripMenuItem @@ -257,19 +271,19 @@ private void InitializeComponent() this.customizeToolStripMenuItem, this.optionsToolStripMenuItem}); this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; - this.toolsToolStripMenuItem.Size = new System.Drawing.Size(46, 20); + this.toolsToolStripMenuItem.Size = new System.Drawing.Size(58, 24); this.toolsToolStripMenuItem.Text = "&Tools"; // // customizeToolStripMenuItem // this.customizeToolStripMenuItem.Name = "customizeToolStripMenuItem"; - this.customizeToolStripMenuItem.Size = new System.Drawing.Size(130, 22); + this.customizeToolStripMenuItem.Size = new System.Drawing.Size(161, 26); this.customizeToolStripMenuItem.Text = "&Customize"; // // optionsToolStripMenuItem // this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem"; - this.optionsToolStripMenuItem.Size = new System.Drawing.Size(130, 22); + this.optionsToolStripMenuItem.Size = new System.Drawing.Size(161, 26); this.optionsToolStripMenuItem.Text = "&Options"; // // helpToolStripMenuItem @@ -281,60 +295,63 @@ private void InitializeComponent() this.toolStripSeparator5, this.aboutToolStripMenuItem}); this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; - this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.helpToolStripMenuItem.Size = new System.Drawing.Size(55, 24); this.helpToolStripMenuItem.Text = "&Help"; // // contentsToolStripMenuItem // this.contentsToolStripMenuItem.Name = "contentsToolStripMenuItem"; - this.contentsToolStripMenuItem.Size = new System.Drawing.Size(122, 22); + this.contentsToolStripMenuItem.Size = new System.Drawing.Size(150, 26); this.contentsToolStripMenuItem.Text = "&Contents"; // // indexToolStripMenuItem // this.indexToolStripMenuItem.Name = "indexToolStripMenuItem"; - this.indexToolStripMenuItem.Size = new System.Drawing.Size(122, 22); + this.indexToolStripMenuItem.Size = new System.Drawing.Size(150, 26); this.indexToolStripMenuItem.Text = "&Index"; // // searchToolStripMenuItem // this.searchToolStripMenuItem.Name = "searchToolStripMenuItem"; - this.searchToolStripMenuItem.Size = new System.Drawing.Size(122, 22); + this.searchToolStripMenuItem.Size = new System.Drawing.Size(150, 26); this.searchToolStripMenuItem.Text = "&Search"; // // toolStripSeparator5 // this.toolStripSeparator5.Name = "toolStripSeparator5"; - this.toolStripSeparator5.Size = new System.Drawing.Size(119, 6); + this.toolStripSeparator5.Size = new System.Drawing.Size(147, 6); // // aboutToolStripMenuItem // this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; - this.aboutToolStripMenuItem.Size = new System.Drawing.Size(122, 22); + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(150, 26); this.aboutToolStripMenuItem.Text = "&About..."; // // tmsStatusStrip // this.tmsStatusStrip.Font = new System.Drawing.Font("Segoe UI", 9F); + this.tmsStatusStrip.ImageScalingSize = new System.Drawing.Size(20, 20); this.tmsStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabel1}); - this.tmsStatusStrip.Location = new System.Drawing.Point(0, 221); + this.tmsStatusStrip.Location = new System.Drawing.Point(0, 273); this.tmsStatusStrip.Name = "tmsStatusStrip"; + this.tmsStatusStrip.Padding = new System.Windows.Forms.Padding(1, 0, 19, 0); this.tmsStatusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; - this.tmsStatusStrip.Size = new System.Drawing.Size(256, 22); + this.tmsStatusStrip.Size = new System.Drawing.Size(341, 26); this.tmsStatusStrip.TabIndex = 1; this.tmsStatusStrip.Text = "statusStrip1"; // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; - this.toolStripStatusLabel1.Size = new System.Drawing.Size(91, 17); + this.toolStripStatusLabel1.Size = new System.Drawing.Size(117, 20); this.toolStripStatusLabel1.Text = "StatusStrip label"; // // tmsToolStrip // this.tmsToolStrip.Dock = System.Windows.Forms.DockStyle.None; this.tmsToolStrip.Font = new System.Drawing.Font("Segoe UI", 9F); + this.tmsToolStrip.ImageScalingSize = new System.Drawing.Size(20, 20); this.tmsToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.newToolStripButton, this.openToolStripButton, @@ -346,9 +363,9 @@ private void InitializeComponent() this.pasteToolStripButton, this.toolStripSeparator7, this.helpToolStripButton}); - this.tmsToolStrip.Location = new System.Drawing.Point(3, 0); + this.tmsToolStrip.Location = new System.Drawing.Point(4, 0); this.tmsToolStrip.Name = "tmsToolStrip"; - this.tmsToolStrip.Size = new System.Drawing.Size(208, 25); + this.tmsToolStrip.Size = new System.Drawing.Size(257, 27); this.tmsToolStrip.TabIndex = 2; this.tmsToolStrip.Text = "toolStrip1"; // @@ -358,7 +375,7 @@ private void InitializeComponent() this.newToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripButton.Image"))); this.newToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.newToolStripButton.Name = "newToolStripButton"; - this.newToolStripButton.Size = new System.Drawing.Size(23, 22); + this.newToolStripButton.Size = new System.Drawing.Size(29, 24); this.newToolStripButton.Text = "&New"; // // openToolStripButton @@ -367,7 +384,7 @@ private void InitializeComponent() this.openToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripButton.Image"))); this.openToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.openToolStripButton.Name = "openToolStripButton"; - this.openToolStripButton.Size = new System.Drawing.Size(23, 22); + this.openToolStripButton.Size = new System.Drawing.Size(29, 24); this.openToolStripButton.Text = "&Open"; // // saveToolStripButton @@ -376,7 +393,7 @@ private void InitializeComponent() this.saveToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripButton.Image"))); this.saveToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.saveToolStripButton.Name = "saveToolStripButton"; - this.saveToolStripButton.Size = new System.Drawing.Size(23, 22); + this.saveToolStripButton.Size = new System.Drawing.Size(29, 24); this.saveToolStripButton.Text = "&Save"; // // printToolStripButton @@ -385,13 +402,13 @@ private void InitializeComponent() this.printToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("printToolStripButton.Image"))); this.printToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.printToolStripButton.Name = "printToolStripButton"; - this.printToolStripButton.Size = new System.Drawing.Size(23, 22); + this.printToolStripButton.Size = new System.Drawing.Size(29, 24); this.printToolStripButton.Text = "&Print"; // // toolStripSeparator6 // this.toolStripSeparator6.Name = "toolStripSeparator6"; - this.toolStripSeparator6.Size = new System.Drawing.Size(6, 25); + this.toolStripSeparator6.Size = new System.Drawing.Size(6, 27); // // cutToolStripButton // @@ -399,7 +416,7 @@ private void InitializeComponent() this.cutToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripButton.Image"))); this.cutToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.cutToolStripButton.Name = "cutToolStripButton"; - this.cutToolStripButton.Size = new System.Drawing.Size(23, 22); + this.cutToolStripButton.Size = new System.Drawing.Size(29, 24); this.cutToolStripButton.Text = "C&ut"; // // copyToolStripButton @@ -408,7 +425,7 @@ private void InitializeComponent() this.copyToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripButton.Image"))); this.copyToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.copyToolStripButton.Name = "copyToolStripButton"; - this.copyToolStripButton.Size = new System.Drawing.Size(23, 22); + this.copyToolStripButton.Size = new System.Drawing.Size(29, 24); this.copyToolStripButton.Text = "&Copy"; // // pasteToolStripButton @@ -417,13 +434,13 @@ private void InitializeComponent() this.pasteToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripButton.Image"))); this.pasteToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.pasteToolStripButton.Name = "pasteToolStripButton"; - this.pasteToolStripButton.Size = new System.Drawing.Size(23, 22); + this.pasteToolStripButton.Size = new System.Drawing.Size(29, 24); this.pasteToolStripButton.Text = "&Paste"; // // toolStripSeparator7 // this.toolStripSeparator7.Name = "toolStripSeparator7"; - this.toolStripSeparator7.Size = new System.Drawing.Size(6, 25); + this.toolStripSeparator7.Size = new System.Drawing.Size(6, 27); // // helpToolStripButton // @@ -431,7 +448,7 @@ private void InitializeComponent() this.helpToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("helpToolStripButton.Image"))); this.helpToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.helpToolStripButton.Name = "helpToolStripButton"; - this.helpToolStripButton.Size = new System.Drawing.Size(23, 22); + this.helpToolStripButton.Size = new System.Drawing.Size(29, 24); this.helpToolStripButton.Text = "He&lp"; // // tmsToolStripContainer @@ -439,12 +456,14 @@ private void InitializeComponent() // // tmsToolStripContainer.ContentPanel // + this.tmsToolStripContainer.ContentPanel.Margin = new System.Windows.Forms.Padding(4); this.tmsToolStripContainer.ContentPanel.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; - this.tmsToolStripContainer.ContentPanel.Size = new System.Drawing.Size(256, 172); + this.tmsToolStripContainer.ContentPanel.Size = new System.Drawing.Size(341, 216); this.tmsToolStripContainer.Dock = System.Windows.Forms.DockStyle.Fill; - this.tmsToolStripContainer.Location = new System.Drawing.Point(0, 24); + this.tmsToolStripContainer.Location = new System.Drawing.Point(0, 30); + this.tmsToolStripContainer.Margin = new System.Windows.Forms.Padding(4); this.tmsToolStripContainer.Name = "tmsToolStripContainer"; - this.tmsToolStripContainer.Size = new System.Drawing.Size(256, 197); + this.tmsToolStripContainer.Size = new System.Drawing.Size(341, 243); this.tmsToolStripContainer.TabIndex = 3; this.tmsToolStripContainer.Text = "toolStripContainer1"; // @@ -452,16 +471,125 @@ private void InitializeComponent() // this.tmsToolStripContainer.TopToolStripPanel.Controls.Add(this.tmsToolStrip); // + // progressBar1 + // + this.progressBar1.Location = new System.Drawing.Point(233, 277); + this.progressBar1.Name = "progressBar1"; + this.progressBar1.Size = new System.Drawing.Size(100, 23); + this.progressBar1.TabIndex = 4; + this.progressBar1.Value = 50; + // + // bindingNavigator1 + // + this.bindingNavigator1.AddNewItem = null; + this.bindingNavigator1.AutoSize = false; + this.bindingNavigator1.CanOverflow = false; + this.bindingNavigator1.CountItem = this.bindingNavigatorCountItem; + this.bindingNavigator1.DeleteItem = null; + this.bindingNavigator1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bindingNavigator1.Font = new System.Drawing.Font("Segoe UI", 9F); + this.bindingNavigator1.GripMargin = new System.Windows.Forms.Padding(0); + this.bindingNavigator1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; + this.bindingNavigator1.ImageScalingSize = new System.Drawing.Size(30, 25); + this.bindingNavigator1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.bindingNavigatorMoveFirstItem, + this.bindingNavigatorMovePreviousItem, + this.bindingNavigatorSeparator, + this.bindingNavigatorPositionItem, + this.bindingNavigatorCountItem, + this.bindingNavigatorSeparator1, + this.bindingNavigatorMoveNextItem, + this.bindingNavigatorMoveLastItem}); + this.bindingNavigator1.Location = new System.Drawing.Point(0, 230); + this.bindingNavigator1.MoveFirstItem = this.bindingNavigatorMoveFirstItem; + this.bindingNavigator1.MoveLastItem = this.bindingNavigatorMoveLastItem; + this.bindingNavigator1.MoveNextItem = this.bindingNavigatorMoveNextItem; + this.bindingNavigator1.MovePreviousItem = this.bindingNavigatorMovePreviousItem; + this.bindingNavigator1.Name = "bindingNavigator1"; + this.bindingNavigator1.Padding = new System.Windows.Forms.Padding(0); + this.bindingNavigator1.PositionItem = this.bindingNavigatorPositionItem; + this.bindingNavigator1.Size = new System.Drawing.Size(341, 43); + this.bindingNavigator1.TabIndex = 4; + this.bindingNavigator1.Text = "bindingNavigator1"; + // + // bindingNavigatorCountItem + // + this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; + this.bindingNavigatorCountItem.Size = new System.Drawing.Size(45, 40); + this.bindingNavigatorCountItem.Text = "of {0}"; + this.bindingNavigatorCountItem.ToolTipText = "Total number of items"; + // + // bindingNavigatorMoveFirstItem + // + this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); + this.bindingNavigatorMoveFirstItem.Margin = new System.Windows.Forms.Padding(6, 1, 0, 2); + this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; + this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(34, 40); + this.bindingNavigatorMoveFirstItem.Text = "Move first"; + // + // bindingNavigatorMovePreviousItem + // + this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); + this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; + this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(34, 40); + this.bindingNavigatorMovePreviousItem.Text = "Move previous"; + // + // bindingNavigatorSeparator + // + this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; + this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 43); + // + // bindingNavigatorPositionItem + // + this.bindingNavigatorPositionItem.AccessibleName = "Position"; + this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("Segoe UI", 9F); + this.bindingNavigatorPositionItem.HideSelection = false; + this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem"; + this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(27, 43); + this.bindingNavigatorPositionItem.Text = "0"; + this.bindingNavigatorPositionItem.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.bindingNavigatorPositionItem.ToolTipText = "Current comment"; + // + // bindingNavigatorSeparator1 + // + this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; + this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 43); + // + // bindingNavigatorMoveNextItem + // + this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image"))); + this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem"; + this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(34, 40); + this.bindingNavigatorMoveNextItem.Text = "Move next"; + // + // bindingNavigatorMoveLastItem + // + this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image"))); + this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem"; + this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(34, 40); + this.bindingNavigatorMoveLastItem.Text = "Move last"; + // // FormChromeTMS // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(256, 243); + this.ClientSize = new System.Drawing.Size(341, 299); + this.Controls.Add(this.bindingNavigator1); + this.Controls.Add(this.progressBar1); this.Controls.Add(this.tmsToolStripContainer); this.Controls.Add(this.tmsStatusStrip); this.Controls.Add(this.tmsMenuStrip); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.tmsMenuStrip; + this.Margin = new System.Windows.Forms.Padding(4); this.Name = "FormChromeTMS"; this.Text = "Chrome + ToolMenuStatus Strips"; this.tmsMenuStrip.ResumeLayout(false); @@ -474,6 +602,9 @@ private void InitializeComponent() this.tmsToolStripContainer.TopToolStripPanel.PerformLayout(); this.tmsToolStripContainer.ResumeLayout(false); this.tmsToolStripContainer.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).EndInit(); + this.bindingNavigator1.ResumeLayout(false); + this.bindingNavigator1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -525,5 +656,15 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; private System.Windows.Forms.ToolStripButton helpToolStripButton; private System.Windows.Forms.ToolStripContainer tmsToolStripContainer; + private System.Windows.Forms.ProgressBar progressBar1; + private System.Windows.Forms.BindingNavigator bindingNavigator1; + private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator; + private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; } } \ No newline at end of file diff --git a/Applications/Source/Palette Designer/FormChromeTMS.cs b/Applications/Source/Palette Designer/FormChromeTMS.cs index 45f2759..02bea36 100644 --- a/Applications/Source/Palette Designer/FormChromeTMS.cs +++ b/Applications/Source/Palette Designer/FormChromeTMS.cs @@ -10,6 +10,7 @@ */ #endregion +using System; using System.Windows.Forms; using Krypton.Toolkit; @@ -39,8 +40,21 @@ public ToolStripRenderer OverrideToolStripRenderer tmsToolStripContainer.LeftToolStripPanel.Renderer = value; tmsToolStripContainer.RightToolStripPanel.Renderer = value; tmsToolStripContainer.ContentPanel.Renderer = value; + bindingNavigator1.Renderer = value; } } + + protected override void OnLoad(EventArgs e) + { + bindingNavigatorMoveFirstItem.Enabled = Enabled; + bindingNavigatorMoveLastItem.Enabled = Enabled; + bindingNavigatorMoveNextItem.Enabled = Enabled; + bindingNavigatorMovePreviousItem.Enabled = Enabled; + bindingNavigatorPositionItem.Enabled = Enabled; + + base.OnLoad(e); + } + #endregion } } diff --git a/Applications/Source/Palette Designer/FormChromeTMS.resx b/Applications/Source/Palette Designer/FormChromeTMS.resx index 299caa7..562193f 100644 --- a/Applications/Source/Palette Designer/FormChromeTMS.resx +++ b/Applications/Source/Palette Designer/FormChromeTMS.resx @@ -124,7 +124,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAERSURBVDhPrZDbSgJRGIXnpewd6jXsjSQvIrwoI0RQMChU + YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAERSURBVDhPrZDbSgJRGIXnpewd6jXsjSQvIrwoI0RQMChU 0iiDPCGiE3ZCRkvR8VzTeBhnyR5/ccaZNnPhB4t9sdf6Ln5hb8QeathNJFVFKF5C8DqL4ksDVHWGDf7j LHyPg6NjviSaFqlu5yQYR+KpupaIkrMknCxT3Y7v/NYYb0ITK1c3BarbWWhLQ7IR0cTKReyZ6lZ0XYei ztHpK4bAc+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Z @@ -355,6 +355,49 @@ BQ49yaW50J7Fh0xJw3IxbM3hwo2x0ICRHZzFgveTunYERK5lgo5YMxx8WPFw5Li+U8wYm66jNz+Naov+ Beqiao58N5NrPluoryJO0QeKU7sNGKPPazh9aRzGo/eYmVvEMk270fTlmzl2N3XW9xL/jv7iaxw7+wAH E9ew//AVxE8OItv/9O/Cf0ck8gud2vKswuxNZgAAAABJRU5ErkJggg== + + + + 1215, 17 + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS + cgAAEnIBXmVb4wAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 + wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0 + v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg + UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA + Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu + lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS + cgAAEnIBXmVb4wAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w + 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f + Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+ + 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS + cgAAEnIBXmVb4wAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 + n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI + N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f + oAc0QjgAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS + cgAAEnIBXmVb4wAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// + h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B + twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA + kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG + WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9 + 8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg== diff --git a/Applications/Source/Palette Designer/MainForm.cs b/Applications/Source/Palette Designer/MainForm.cs index a583638..9deacf7 100644 --- a/Applications/Source/Palette Designer/MainForm.cs +++ b/Applications/Source/Palette Designer/MainForm.cs @@ -13,15 +13,12 @@ using System; using System.Collections.Generic; -using System.Drawing; using System.IO; using System.Windows.Forms; using Krypton.Navigator; using Krypton.Toolkit; -using PaletteDesigner.Properties; - namespace PaletteDesigner { public partial class MainForm : KryptonForm @@ -32,6 +29,7 @@ public partial class MainForm : KryptonForm private string _filename; private KryptonPalette _palette; private FormChromeTMS _chromeTMS; + private FormChromeTMS _chromeTMS2; private FormChromeRibbon _chromeRibbon; private MostRecentlyUsedDocumentsManager _recentlyUsedDocumentsManager; private SettingsManager _settingsManager = new(); @@ -330,6 +328,7 @@ private void Open() // Use the new instance instead _palette = palette; _chromeTMS.Palette = palette; + _chromeTMS2.Palette = palette; _chromeRibbon.OverridePalette = _palette; // We need to know when a change occurs to the palette settings @@ -448,6 +447,7 @@ private void CreateNewPalette() // Create a fresh palette instance _palette = new KryptonPalette(); _chromeTMS.Palette = _palette; + _chromeTMS2.Palette = _palette; _chromeRibbon.OverridePalette = _palette; // We need to know when a change occurs to the palette settings @@ -503,6 +503,7 @@ private void UpdateChromeTMS() // Get the new toolstrip renderer based on the design palette _chromeTMS.OverrideToolStripRenderer = renderer.RenderToolStrip(_palette); + _chromeTMS2.OverrideToolStripRenderer = renderer.RenderToolStrip(_palette); } private void OnPalettePaint(object sender, PaletteLayoutEventArgs e) @@ -525,14 +526,7 @@ private void OnPalettePaint(object sender, PaletteLayoutEventArgs e) #region Event Handlers private void Form1_Load(object sender, EventArgs e) { - if (_settingsManager.GetMaximised()) - { - WindowState = FormWindowState.Maximized; - } - else - { - WindowState = FormWindowState.Normal; - } + WindowState = _settingsManager.GetMaximised() ? FormWindowState.Maximized : FormWindowState.Normal; // Populate the sample data set dataTable1.Rows.Add("One", "Two", "Three"); @@ -544,10 +538,20 @@ private void Form1_Load(object sender, EventArgs e) { TopLevel = false, Parent = pageDesignChromeTMS, - Dock = DockStyle.Fill, + Dock = DockStyle.Top, InertForm = true }; _chromeTMS.Show(); + _chromeTMS2 = new FormChromeTMS + { + TopLevel = false, + Parent = pageDesignChromeTMS, + Dock = DockStyle.Bottom, + InertForm = true, + Enabled = false, + TextExtra = @"Disabled" + }; + _chromeTMS2.Show(); // Add the chrome window with embedded Ribbon _chromeRibbon = new FormChromeRibbon