changeset 253:7243e6646926 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 diff
     1.1 --- a/FrmNewUnitEquipment.cs	Wed Nov 28 20:54:34 2012 +0000
     1.2 +++ b/FrmNewUnitEquipment.cs	Sat Apr 27 16:10:08 2013 +0100
     1.3 @@ -82,7 +82,8 @@
     1.4  			// 
     1.5  			// lblAmount
     1.6  			// 
     1.7 -			this.lblAmount.Location = new System.Drawing.Point(12, 80);
     1.8 +			this.lblAmount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     1.9 +			this.lblAmount.Location = new System.Drawing.Point(12, 105);
    1.10  			this.lblAmount.Name = "lblAmount";
    1.11  			this.lblAmount.Size = new System.Drawing.Size(68, 77);
    1.12  			this.lblAmount.TabIndex = 2;
    1.13 @@ -91,9 +92,10 @@
    1.14  			// 
    1.15  			// bttnCancel
    1.16  			// 
    1.17 +			this.bttnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    1.18  			this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    1.19  			this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
    1.20 -			this.bttnCancel.Location = new System.Drawing.Point(158, 162);
    1.21 +			this.bttnCancel.Location = new System.Drawing.Point(158, 187);
    1.22  			this.bttnCancel.Name = "bttnCancel";
    1.23  			this.bttnCancel.Size = new System.Drawing.Size(75, 23);
    1.24  			this.bttnCancel.TabIndex = 3;
    1.25 @@ -102,9 +104,10 @@
    1.26  			// 
    1.27  			// bttnOkay
    1.28  			// 
    1.29 +			this.bttnOkay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    1.30  			this.bttnOkay.Enabled = false;
    1.31  			this.bttnOkay.FlatStyle = System.Windows.Forms.FlatStyle.System;
    1.32 -			this.bttnOkay.Location = new System.Drawing.Point(12, 162);
    1.33 +			this.bttnOkay.Location = new System.Drawing.Point(12, 187);
    1.34  			this.bttnOkay.Name = "bttnOkay";
    1.35  			this.bttnOkay.Size = new System.Drawing.Size(75, 23);
    1.36  			this.bttnOkay.TabIndex = 4;
    1.37 @@ -113,6 +116,8 @@
    1.38  			// 
    1.39  			// lblItem
    1.40  			// 
    1.41 +			this.lblItem.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    1.42 +						| System.Windows.Forms.AnchorStyles.Left)));
    1.43  			this.lblItem.Location = new System.Drawing.Point(12, 8);
    1.44  			this.lblItem.Name = "lblItem";
    1.45  			this.lblItem.Size = new System.Drawing.Size(68, 69);
    1.46 @@ -122,15 +127,20 @@
    1.47  			// 
    1.48  			// listItems
    1.49  			// 
    1.50 +			this.listItems.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    1.51 +						| System.Windows.Forms.AnchorStyles.Left)
    1.52 +						| System.Windows.Forms.AnchorStyles.Right)));
    1.53  			this.listItems.Location = new System.Drawing.Point(88, 8);
    1.54  			this.listItems.Name = "listItems";
    1.55 -			this.listItems.Size = new System.Drawing.Size(145, 69);
    1.56 +			this.listItems.Size = new System.Drawing.Size(145, 82);
    1.57  			this.listItems.TabIndex = 7;
    1.58  			this.listItems.SelectedIndexChanged += new System.EventHandler(this.listItems_SelectedIndexChanged);
    1.59  			// 
    1.60  			// equipmentAmount
    1.61  			// 
    1.62 -			this.equipmentAmount.Location = new System.Drawing.Point(88, 80);
    1.63 +			this.equipmentAmount.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
    1.64 +						| System.Windows.Forms.AnchorStyles.Right)));
    1.65 +			this.equipmentAmount.Location = new System.Drawing.Point(88, 105);
    1.66  			this.equipmentAmount.Name = "equipmentAmount";
    1.67  			this.equipmentAmount.Size = new System.Drawing.Size(155, 77);
    1.68  			this.equipmentAmount.TabIndex = 8;
    1.69 @@ -141,7 +151,7 @@
    1.70  			this.AcceptButton = this.bttnOkay;
    1.71  			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    1.72  			this.CancelButton = this.bttnCancel;
    1.73 -			this.ClientSize = new System.Drawing.Size(245, 190);
    1.74 +			this.ClientSize = new System.Drawing.Size(245, 216);
    1.75  			this.ControlBox = false;
    1.76  			this.Controls.Add(this.equipmentAmount);
    1.77  			this.Controls.Add(this.listItems);
    1.78 @@ -149,7 +159,7 @@
    1.79  			this.Controls.Add(this.bttnOkay);
    1.80  			this.Controls.Add(this.bttnCancel);
    1.81  			this.Controls.Add(this.lblAmount);
    1.82 -			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
    1.83 +			this.MinimumSize = new System.Drawing.Size(253, 224);
    1.84  			this.Name = "FrmNewUnitEquipment";
    1.85  			this.ShowInTaskbar = false;
    1.86  			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;