Преглед на файлове

调整编辑器缩放时界面效果

cxs преди 1 година
родител
ревизия
e1b52d3e44
променени са 3 файла, в които са добавени 104 реда и са изтрити 9 реда
  1. 90 0
      OTSPartA_STDEditor/UI/STDEditor.Designer.cs
  2. 11 7
      OTSPartA_STDEditor/UI/STDRuleslist.Designer.cs
  3. 3 2
      OTSPartA_STDEditor/UI/STDRuleslist.cs

+ 90 - 0
OTSPartA_STDEditor/UI/STDEditor.Designer.cs

@@ -181,6 +181,10 @@
             // 
             // groupBox_Data
             // 
+            this.groupBox_Data.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.groupBox_Data.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
             this.groupBox_Data.Controls.Add(this.groupBox_CalculatingSymbols);
             this.groupBox_Data.Controls.Add(this.groupBox_ChemicalElement);
             this.groupBox_Data.Controls.Add(this.groupBox_OtherCommonlyUsedSymbols);
@@ -192,6 +196,8 @@
             // 
             // groupBox_CalculatingSymbols
             // 
+            this.groupBox_CalculatingSymbols.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.groupBox_CalculatingSymbols.Controls.Add(this.button_del);
             this.groupBox_CalculatingSymbols.Controls.Add(this.button_0);
             this.groupBox_CalculatingSymbols.Controls.Add(this.button_4);
@@ -224,6 +230,9 @@
             // 
             // button_del
             // 
+            this.button_del.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_del.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_del.Font = new System.Drawing.Font("楷体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_del.ForeColor = System.Drawing.SystemColors.ControlText;
@@ -237,6 +246,9 @@
             // 
             // button_0
             // 
+            this.button_0.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_0.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_0.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_0.Location = new System.Drawing.Point(204, 72);
@@ -249,6 +261,9 @@
             // 
             // button_4
             // 
+            this.button_4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_4.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_4.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_4.Location = new System.Drawing.Point(156, 20);
@@ -261,6 +276,9 @@
             // 
             // button_5
             // 
+            this.button_5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_5.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_5.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_5.Location = new System.Drawing.Point(204, 20);
@@ -273,6 +291,9 @@
             // 
             // button_9
             // 
+            this.button_9.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_9.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_9.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_9.Location = new System.Drawing.Point(156, 72);
@@ -285,6 +306,9 @@
             // 
             // button_Divide
             // 
+            this.button_Divide.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_Divide.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_Divide.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_Divide.Location = new System.Drawing.Point(397, 21);
@@ -297,6 +321,9 @@
             // 
             // button_3
             // 
+            this.button_3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_3.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_3.Location = new System.Drawing.Point(108, 20);
@@ -309,6 +336,9 @@
             // 
             // button_2
             // 
+            this.button_2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_2.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_2.Location = new System.Drawing.Point(60, 20);
@@ -321,6 +351,9 @@
             // 
             // button_Or
             // 
+            this.button_Or.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_Or.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_Or.Font = new System.Drawing.Font("楷体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_Or.ForeColor = System.Drawing.SystemColors.ControlText;
@@ -334,6 +367,9 @@
             // 
             // button_1
             // 
+            this.button_1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_1.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_1.Location = new System.Drawing.Point(12, 20);
@@ -346,6 +382,9 @@
             // 
             // button_And
             // 
+            this.button_And.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_And.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_And.Font = new System.Drawing.Font("楷体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_And.ForeColor = System.Drawing.SystemColors.ControlText;
@@ -359,6 +398,9 @@
             // 
             // button_6
             // 
+            this.button_6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_6.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_6.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_6.Location = new System.Drawing.Point(12, 72);
@@ -371,6 +413,9 @@
             // 
             // button_7
             // 
+            this.button_7.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_7.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_7.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_7.Location = new System.Drawing.Point(60, 72);
@@ -383,6 +428,9 @@
             // 
             // button_Equal
             // 
+            this.button_Equal.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_Equal.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_Equal.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_Equal.Location = new System.Drawing.Point(424, 71);
@@ -395,6 +443,9 @@
             // 
             // button_Multiply
             // 
+            this.button_Multiply.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_Multiply.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_Multiply.Font = new System.Drawing.Font("方正舒体", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_Multiply.Location = new System.Drawing.Point(348, 21);
@@ -407,6 +458,9 @@
             // 
             // button_8
             // 
+            this.button_8.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_8.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_8.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_8.Location = new System.Drawing.Point(108, 72);
@@ -419,6 +473,9 @@
             // 
             // button_Subtract
             // 
+            this.button_Subtract.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_Subtract.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_Subtract.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_Subtract.Location = new System.Drawing.Point(300, 20);
@@ -431,6 +488,9 @@
             // 
             // button_Plus
             // 
+            this.button_Plus.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_Plus.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_Plus.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_Plus.Location = new System.Drawing.Point(252, 20);
@@ -443,6 +503,9 @@
             // 
             // button_RightParenthesis
             // 
+            this.button_RightParenthesis.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_RightParenthesis.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_RightParenthesis.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_RightParenthesis.Location = new System.Drawing.Point(386, 72);
@@ -455,6 +518,9 @@
             // 
             // button_LeftParenthesis
             // 
+            this.button_LeftParenthesis.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_LeftParenthesis.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_LeftParenthesis.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_LeftParenthesis.Location = new System.Drawing.Point(348, 72);
@@ -467,6 +533,9 @@
             // 
             // button_More
             // 
+            this.button_More.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_More.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_More.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_More.Location = new System.Drawing.Point(252, 72);
@@ -479,6 +548,9 @@
             // 
             // button_Less
             // 
+            this.button_Less.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.button_Less.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.button_Less.Font = new System.Drawing.Font("方正舒体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_Less.Location = new System.Drawing.Point(300, 72);
@@ -491,6 +563,8 @@
             // 
             // groupBox_ChemicalElement
             // 
+            this.groupBox_ChemicalElement.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.groupBox_ChemicalElement.Controls.Add(this.button_PeriodicTableSwitch);
             this.groupBox_ChemicalElement.Controls.Add(this.comboBox_PeriodicTable);
             this.groupBox_ChemicalElement.Location = new System.Drawing.Point(6, 20);
@@ -502,6 +576,7 @@
             // 
             // button_PeriodicTableSwitch
             // 
+            this.button_PeriodicTableSwitch.AutoSize = true;
             this.button_PeriodicTableSwitch.Location = new System.Drawing.Point(6, 79);
             this.button_PeriodicTableSwitch.Name = "button_PeriodicTableSwitch";
             this.button_PeriodicTableSwitch.Size = new System.Drawing.Size(108, 25);
@@ -522,6 +597,8 @@
             // 
             // groupBox_OtherCommonlyUsedSymbols
             // 
+            this.groupBox_OtherCommonlyUsedSymbols.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.groupBox_OtherCommonlyUsedSymbols.Controls.Add(this.label_help1);
             this.groupBox_OtherCommonlyUsedSymbols.Controls.Add(this.label_help2);
             this.groupBox_OtherCommonlyUsedSymbols.Controls.Add(this.comboBox_Constants);
@@ -573,6 +650,9 @@
             // 
             // label_DefinedConstant
             // 
+            this.label_DefinedConstant.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.label_DefinedConstant.AutoSize = true;
             this.label_DefinedConstant.Location = new System.Drawing.Point(260, 76);
             this.label_DefinedConstant.Name = "label_DefinedConstant";
@@ -582,6 +662,9 @@
             // 
             // label_Other
             // 
+            this.label_Other.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.label_Other.AutoSize = true;
             this.label_Other.Location = new System.Drawing.Point(296, 29);
             this.label_Other.Name = "label_Other";
@@ -591,6 +674,9 @@
             // 
             // label_ElementFormTwo
             // 
+            this.label_ElementFormTwo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.label_ElementFormTwo.AutoSize = true;
             this.label_ElementFormTwo.Location = new System.Drawing.Point(2, 77);
             this.label_ElementFormTwo.Name = "label_ElementFormTwo";
@@ -600,6 +686,9 @@
             // 
             // label_ElementFormOne
             // 
+            this.label_ElementFormOne.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.label_ElementFormOne.AutoSize = true;
             this.label_ElementFormOne.Location = new System.Drawing.Point(2, 31);
             this.label_ElementFormOne.Name = "label_ElementFormOne";
@@ -662,6 +751,7 @@
             this.groupBox_Data.ResumeLayout(false);
             this.groupBox_CalculatingSymbols.ResumeLayout(false);
             this.groupBox_ChemicalElement.ResumeLayout(false);
+            this.groupBox_ChemicalElement.PerformLayout();
             this.groupBox_OtherCommonlyUsedSymbols.ResumeLayout(false);
             this.groupBox_OtherCommonlyUsedSymbols.PerformLayout();
             this.ResumeLayout(false);

+ 11 - 7
OTSPartA_STDEditor/UI/STDRuleslist.Designer.cs

@@ -40,16 +40,18 @@
             // 
             // Grid_Minerals
             // 
-            this.Grid_Minerals.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Left)));
+            this.Grid_Minerals.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.Grid_Minerals.BackColor = System.Drawing.SystemColors.Control;
             this.Grid_Minerals.ContextMenuStrip = this.MenuStrip_STDRulelist;
             this.Grid_Minerals.EnableSort = true;
-            this.Grid_Minerals.Location = new System.Drawing.Point(27, 0);
+            this.Grid_Minerals.Location = new System.Drawing.Point(23, 0);
+            this.Grid_Minerals.Margin = new System.Windows.Forms.Padding(3, 3, 10, 3);
             this.Grid_Minerals.Name = "Grid_Minerals";
             this.Grid_Minerals.OptimizeMode = SourceGrid.CellOptimizeMode.ForRows;
             this.Grid_Minerals.SelectionMode = SourceGrid.GridSelectionMode.Cell;
-            this.Grid_Minerals.Size = new System.Drawing.Size(341, 847);
+            this.Grid_Minerals.Size = new System.Drawing.Size(341, 751);
             this.Grid_Minerals.TabIndex = 9;
             this.Grid_Minerals.TabStop = true;
             this.Grid_Minerals.ToolTipText = "";
@@ -104,9 +106,11 @@
             // 
             // STDRuleslist
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(368, 847);
+            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.AutoScroll = true;
+            this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+            this.ClientSize = new System.Drawing.Size(364, 751);
             this.CloseButton = false;
             this.CloseButtonVisible = false;
             this.Controls.Add(this.button_UpOrder);

+ 3 - 2
OTSPartA_STDEditor/UI/STDRuleslist.cs

@@ -415,10 +415,9 @@ namespace OTSPartA_STDEditor
             m_MainForm.STDDictionary[id].StrName = Grid_Minerals[selrow - 1, 0].Value.ToString();
             m_MainForm.STDDictionary[id2].StrName = Grid_Minerals[selrow, 0].Value.ToString();
 
-            Position pos = new Position(selrow - 1, 0);
+            Position pos = new Position(selrow - 1, 1);
             Grid_Minerals[selrow - 1, 0].Grid.Select();
             Grid_Minerals.Selection.Focus(pos, true);
-
             PreRow = selrow - 1;
 
             button_DownOrder.Enabled = true;
@@ -427,6 +426,7 @@ namespace OTSPartA_STDEditor
                 button_UpOrder.Enabled = false;
             }
             m_MainForm.IsModified = true;
+            Grid_Minerals.Refresh();
             //m_MainForm.ChangeSTDEditorAndGrid_Attributes(int.Parse(Grid_Minerals[selrow-1, 0].Tag.ToString()));
         }
 
@@ -488,6 +488,7 @@ namespace OTSPartA_STDEditor
             //}
             #endregion
             m_MainForm.IsModified = true;
+            Grid_Minerals.Refresh();
         }
 
         public void InsertNewRow(int STDId, string RuleName, Color color)