Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
changeset 253:7243e6646926 default tip
Re #427: Resizable equipment dialog
* Make equipment dialog resizable
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 27 Apr 2013 16:10:08 +0100 |
parents | 4d25c42bbe7b |
children | |
files | FrmNewUnitEquipment.cs |
diffstat | 1 files changed, 17 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmNewUnitEquipment.cs Wed Nov 28 20:54:34 2012 +0000 +++ b/FrmNewUnitEquipment.cs Sat Apr 27 16:10:08 2013 +0100 @@ -82,7 +82,8 @@ // // lblAmount // - this.lblAmount.Location = new System.Drawing.Point(12, 80); + this.lblAmount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.lblAmount.Location = new System.Drawing.Point(12, 105); this.lblAmount.Name = "lblAmount"; this.lblAmount.Size = new System.Drawing.Size(68, 77); this.lblAmount.TabIndex = 2; @@ -91,9 +92,10 @@ // // bttnCancel // + this.bttnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.bttnCancel.Location = new System.Drawing.Point(158, 162); + this.bttnCancel.Location = new System.Drawing.Point(158, 187); this.bttnCancel.Name = "bttnCancel"; this.bttnCancel.Size = new System.Drawing.Size(75, 23); this.bttnCancel.TabIndex = 3; @@ -102,9 +104,10 @@ // // bttnOkay // + this.bttnOkay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.bttnOkay.Enabled = false; this.bttnOkay.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.bttnOkay.Location = new System.Drawing.Point(12, 162); + this.bttnOkay.Location = new System.Drawing.Point(12, 187); this.bttnOkay.Name = "bttnOkay"; this.bttnOkay.Size = new System.Drawing.Size(75, 23); this.bttnOkay.TabIndex = 4; @@ -113,6 +116,8 @@ // // lblItem // + this.lblItem.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); this.lblItem.Location = new System.Drawing.Point(12, 8); this.lblItem.Name = "lblItem"; this.lblItem.Size = new System.Drawing.Size(68, 69); @@ -122,15 +127,20 @@ // // listItems // + this.listItems.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.listItems.Location = new System.Drawing.Point(88, 8); this.listItems.Name = "listItems"; - this.listItems.Size = new System.Drawing.Size(145, 69); + this.listItems.Size = new System.Drawing.Size(145, 82); this.listItems.TabIndex = 7; this.listItems.SelectedIndexChanged += new System.EventHandler(this.listItems_SelectedIndexChanged); // // equipmentAmount // - this.equipmentAmount.Location = new System.Drawing.Point(88, 80); + this.equipmentAmount.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.equipmentAmount.Location = new System.Drawing.Point(88, 105); this.equipmentAmount.Name = "equipmentAmount"; this.equipmentAmount.Size = new System.Drawing.Size(155, 77); this.equipmentAmount.TabIndex = 8; @@ -141,7 +151,7 @@ this.AcceptButton = this.bttnOkay; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.bttnCancel; - this.ClientSize = new System.Drawing.Size(245, 190); + this.ClientSize = new System.Drawing.Size(245, 216); this.ControlBox = false; this.Controls.Add(this.equipmentAmount); this.Controls.Add(this.listItems); @@ -149,7 +159,7 @@ this.Controls.Add(this.bttnOkay); this.Controls.Add(this.bttnCancel); this.Controls.Add(this.lblAmount); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MinimumSize = new System.Drawing.Size(253, 224); this.Name = "FrmNewUnitEquipment"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;