From 5ae72dfa41db2a1e3cbe2be0c93408fa83a74d22 Mon Sep 17 00:00:00 2001 From: Peter Hall <33176108+IamPete1@users.noreply.github.com> Date: Sat, 3 Jun 2023 11:59:05 +0100 Subject: [PATCH] GCSViews: ConfigurationView: update coloum width --- .../ConfigRawParams.Designer.cs | 78 ++++++++++--------- 1 file changed, 41 insertions(+), 37 deletions(-) diff --git a/GCSViews/ConfigurationView/ConfigRawParams.Designer.cs b/GCSViews/ConfigurationView/ConfigRawParams.Designer.cs index f1d2b4181d..8b5e67aafd 100644 --- a/GCSViews/ConfigurationView/ConfigRawParams.Designer.cs +++ b/GCSViews/ConfigurationView/ConfigRawParams.Designer.cs @@ -54,6 +54,8 @@ private void InitializeComponent() this.chk_none_default = new System.Windows.Forms.CheckBox(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.treeView1 = new System.Windows.Forms.TreeView(); + this.but_collapse = new MissionPlanner.Controls.MyButton(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.Params = new MissionPlanner.Controls.MyDataGridView(); this.Command = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Value = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -62,14 +64,12 @@ private void InitializeComponent() this.Options = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Desc = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Fav = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.but_collapse = new MissionPlanner.Controls.MyButton(); - this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.Params)).BeginInit(); this.tableLayoutPanel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.Params)).BeginInit(); this.SuspendLayout(); // // BUT_compare @@ -209,6 +209,34 @@ private void InitializeComponent() this.treeView1.Name = "treeView1"; this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect); // + // but_collapse + // + resources.ApplyResources(this.but_collapse, "but_collapse"); + this.but_collapse.Name = "but_collapse"; + this.but_collapse.TextColorNotEnabled = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4))))); + this.but_collapse.UseVisualStyleBackColor = true; + this.but_collapse.Click += new System.EventHandler(this.but_collapse_Click); + // + // tableLayoutPanel1 + // + resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1"); + this.tableLayoutPanel1.Controls.Add(this.label2, 0, 11); + this.tableLayoutPanel1.Controls.Add(this.BUT_refreshTable, 0, 16); + this.tableLayoutPanel1.Controls.Add(this.chk_none_default, 0, 14); + this.tableLayoutPanel1.Controls.Add(this.txt_search, 0, 12); + this.tableLayoutPanel1.Controls.Add(this.BUT_load, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.BUT_save, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.BUT_rerequestparams, 0, 4); + this.tableLayoutPanel1.Controls.Add(this.BUT_commitToFlash, 0, 6); + this.tableLayoutPanel1.Controls.Add(this.BUT_writePIDS, 0, 3); + this.tableLayoutPanel1.Controls.Add(this.BUT_reset_params, 0, 10); + this.tableLayoutPanel1.Controls.Add(this.BUT_compare, 0, 5); + this.tableLayoutPanel1.Controls.Add(this.BUT_paramfileload, 0, 9); + this.tableLayoutPanel1.Controls.Add(this.label1, 0, 7); + this.tableLayoutPanel1.Controls.Add(this.CMB_paramfiles, 0, 8); + this.tableLayoutPanel1.Controls.Add(this.chk_modified, 0, 13); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + // // Params // this.Params.AllowUserToAddRows = false; @@ -259,6 +287,7 @@ private void InitializeComponent() // // Command // + this.Command.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; this.Command.FillWeight = 20F; resources.ApplyResources(this.Command, "Command"); this.Command.Name = "Command"; @@ -279,6 +308,7 @@ private void InitializeComponent() // // Units // + this.Units.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; this.Units.FillWeight = 9F; resources.ApplyResources(this.Units, "Units"); this.Units.Name = "Units"; @@ -303,37 +333,11 @@ private void InitializeComponent() // // Fav // + this.Fav.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.Fav.FillWeight = 4F; resources.ApplyResources(this.Fav, "Fav"); this.Fav.Name = "Fav"; - // - // but_collapse - // - resources.ApplyResources(this.but_collapse, "but_collapse"); - this.but_collapse.Name = "but_collapse"; - this.but_collapse.TextColorNotEnabled = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4))))); - this.but_collapse.UseVisualStyleBackColor = true; - this.but_collapse.Click += new System.EventHandler(this.but_collapse_Click); - // - // tableLayoutPanel1 - // - resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1"); - this.tableLayoutPanel1.Controls.Add(this.label2, 0, 11); - this.tableLayoutPanel1.Controls.Add(this.BUT_refreshTable, 0, 16); - this.tableLayoutPanel1.Controls.Add(this.chk_none_default, 0, 14); - this.tableLayoutPanel1.Controls.Add(this.txt_search, 0, 12); - this.tableLayoutPanel1.Controls.Add(this.BUT_load, 0, 0); - this.tableLayoutPanel1.Controls.Add(this.BUT_save, 0, 1); - this.tableLayoutPanel1.Controls.Add(this.BUT_rerequestparams, 0, 4); - this.tableLayoutPanel1.Controls.Add(this.BUT_commitToFlash, 0, 6); - this.tableLayoutPanel1.Controls.Add(this.BUT_writePIDS, 0, 3); - this.tableLayoutPanel1.Controls.Add(this.BUT_reset_params, 0, 10); - this.tableLayoutPanel1.Controls.Add(this.BUT_compare, 0, 5); - this.tableLayoutPanel1.Controls.Add(this.BUT_paramfileload, 0, 9); - this.tableLayoutPanel1.Controls.Add(this.label1, 0, 7); - this.tableLayoutPanel1.Controls.Add(this.CMB_paramfiles, 0, 8); - this.tableLayoutPanel1.Controls.Add(this.chk_modified, 0, 13); - this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.Fav.Resizable = System.Windows.Forms.DataGridViewTriState.False; // // ConfigRawParams // @@ -345,9 +349,9 @@ private void InitializeComponent() this.splitContainer1.Panel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.Params)).EndInit(); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.Params)).EndInit(); this.ResumeLayout(false); } @@ -370,6 +374,11 @@ private void InitializeComponent() private MyButton BUT_commitToFlash; private System.Windows.Forms.CheckBox chk_modified; private MyButton BUT_refreshTable; + private System.Windows.Forms.CheckBox chk_none_default; + private System.Windows.Forms.SplitContainer splitContainer1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.TreeView treeView1; + private MyButton but_collapse; private System.Windows.Forms.DataGridViewTextBoxColumn Command; private System.Windows.Forms.DataGridViewTextBoxColumn Value; private System.Windows.Forms.DataGridViewTextBoxColumn Default_value; @@ -377,10 +386,5 @@ private void InitializeComponent() private System.Windows.Forms.DataGridViewTextBoxColumn Options; private System.Windows.Forms.DataGridViewTextBoxColumn Desc; private System.Windows.Forms.DataGridViewCheckBoxColumn Fav; - private System.Windows.Forms.CheckBox chk_none_default; - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private System.Windows.Forms.TreeView treeView1; - private MyButton but_collapse; } }