Clamp minimum size of PKM editor popups

This commit is contained in:
Kurt 2024-04-22 20:47:59 -05:00
parent 1b294f7c97
commit 394f5ed707
3 changed files with 9 additions and 7 deletions

View File

@ -865,6 +865,7 @@ private void InitializeComponent()
Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
MaximizeBox = false;
MinimizeBox = false;
MinimumSize = new System.Drawing.Size(452, 354);
Name = "MemoryAmie";
StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
Text = "Memories / Amie Editor";

View File

@ -183,6 +183,7 @@ private void InitializeComponent()
Icon = Properties.Resources.Icon;
Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
MaximizeBox = false;
MinimizeBox = false;
MinimumSize = new System.Drawing.Size(627, 363);
Name = "RibbonEditor";
StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -44,7 +44,7 @@ private void InitializeComponent()
// B_Save
//
B_Save.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
B_Save.Location = new System.Drawing.Point(126, 398);
B_Save.Location = new System.Drawing.Point(126, 401);
B_Save.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
B_Save.Name = "B_Save";
B_Save.Size = new System.Drawing.Size(105, 27);
@ -56,7 +56,7 @@ private void InitializeComponent()
// B_Cancel
//
B_Cancel.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
B_Cancel.Location = new System.Drawing.Point(14, 398);
B_Cancel.Location = new System.Drawing.Point(14, 401);
B_Cancel.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
B_Cancel.Name = "B_Cancel";
B_Cancel.Size = new System.Drawing.Size(105, 27);
@ -68,7 +68,7 @@ private void InitializeComponent()
// B_None
//
B_None.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
B_None.Location = new System.Drawing.Point(126, 365);
B_None.Location = new System.Drawing.Point(126, 368);
B_None.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
B_None.Name = "B_None";
B_None.Size = new System.Drawing.Size(105, 27);
@ -80,7 +80,7 @@ private void InitializeComponent()
// B_All
//
B_All.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
B_All.Location = new System.Drawing.Point(14, 365);
B_All.Location = new System.Drawing.Point(14, 368);
B_All.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
B_All.Name = "B_All";
B_All.Size = new System.Drawing.Size(105, 27);
@ -104,10 +104,9 @@ private void InitializeComponent()
dgv.MultiSelect = false;
dgv.Name = "dgv";
dgv.RowHeadersVisible = false;
dgv.RowTemplate.Height = 25;
dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
dgv.ShowEditingIcon = false;
dgv.Size = new System.Drawing.Size(240, 359);
dgv.Size = new System.Drawing.Size(243, 362);
dgv.TabIndex = 6;
dgv.CellClick += ClickCell;
dgv.ColumnHeaderMouseClick += SortColumn;
@ -160,7 +159,7 @@ private void InitializeComponent()
// TechRecordEditor
//
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
ClientSize = new System.Drawing.Size(245, 438);
ClientSize = new System.Drawing.Size(248, 441);
Controls.Add(dgv);
Controls.Add(B_None);
Controls.Add(B_All);
@ -170,6 +169,7 @@ private void InitializeComponent()
Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
MaximizeBox = false;
MinimizeBox = false;
MinimumSize = new System.Drawing.Size(264, 480);
Name = "TechRecordEditor";
StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
Text = "TR Relearn Editor";