Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
diff FrmUnit.cs @ 55:346b4ac34997
Re #163: Unit cost on unit dialog
* Prevent overlap of labels
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 19 Sep 2009 10:48:46 +0000 |
parents | e6d0d9eababf |
children | c283545d2d0b |
line wrap: on
line diff
--- a/FrmUnit.cs Sat Sep 19 10:27:01 2009 +0000 +++ b/FrmUnit.cs Sat Sep 19 10:48:46 2009 +0000 @@ -202,8 +202,8 @@ this.bttnReplaceWeapon = new System.Windows.Forms.Button(); this.bttnEditReqdWeapon = new System.Windows.Forms.Button(); this.lblPoints = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.statsGrid)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.unitSize)).BeginInit(); + ((System.ComponentModel.ISupportInitialize) (this.statsGrid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize) (this.unitSize)).BeginInit(); this.SuspendLayout(); // // statsGrid @@ -211,7 +211,7 @@ this.statsGrid.AllowNavigation = false; this.statsGrid.AllowSorting = false; this.statsGrid.AlternatingBackColor = System.Drawing.SystemColors.Control; - this.statsGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.statsGrid.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.statsGrid.BackgroundColor = System.Drawing.SystemColors.Control; this.statsGrid.CaptionVisible = false; @@ -241,7 +241,7 @@ // // unitSize // - this.unitSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.unitSize.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.unitSize.Location = new System.Drawing.Point(528, 8); this.unitSize.Name = "unitSize"; this.unitSize.Size = new System.Drawing.Size(80, 20); @@ -257,10 +257,10 @@ // // lblUnitSize // - this.lblUnitSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.lblUnitSize.Location = new System.Drawing.Point(424, 8); + this.lblUnitSize.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.lblUnitSize.Location = new System.Drawing.Point(452, 8); this.lblUnitSize.Name = "lblUnitSize"; - this.lblUnitSize.Size = new System.Drawing.Size(100, 23); + this.lblUnitSize.Size = new System.Drawing.Size(72, 23); this.lblUnitSize.TabIndex = 0; this.lblUnitSize.Text = "unit size"; this.lblUnitSize.TextAlign = System.Drawing.ContentAlignment.TopRight; @@ -276,7 +276,7 @@ // // bttnAddWeapon // - this.bttnAddWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.bttnAddWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.bttnAddWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; this.bttnAddWeapon.Location = new System.Drawing.Point(520, 200); this.bttnAddWeapon.Name = "bttnAddWeapon"; @@ -287,7 +287,7 @@ // // bttnRemoveWeapon // - this.bttnRemoveWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.bttnRemoveWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.bttnRemoveWeapon.Enabled = false; this.bttnRemoveWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; this.bttnRemoveWeapon.Location = new System.Drawing.Point(520, 248); @@ -299,7 +299,7 @@ // // reqdList // - this.reqdList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.reqdList.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.reqdList.Location = new System.Drawing.Point(104, 128); this.reqdList.Name = "reqdList"; @@ -310,7 +310,7 @@ // // bttnEditWeapon // - this.bttnEditWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.bttnEditWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.bttnEditWeapon.Enabled = false; this.bttnEditWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; this.bttnEditWeapon.Location = new System.Drawing.Point(520, 224); @@ -322,7 +322,7 @@ // // optList // - this.optList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.optList.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.optList.Location = new System.Drawing.Point(104, 200); this.optList.Name = "optList"; @@ -342,7 +342,7 @@ // // bttnReplaceWeapon // - this.bttnReplaceWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.bttnReplaceWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.bttnReplaceWeapon.Enabled = false; this.bttnReplaceWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; this.bttnReplaceWeapon.Location = new System.Drawing.Point(520, 128); @@ -354,7 +354,7 @@ // // bttnEditReqdWeapon // - this.bttnEditReqdWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.bttnEditReqdWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.bttnEditReqdWeapon.Enabled = false; this.bttnEditReqdWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; this.bttnEditReqdWeapon.Location = new System.Drawing.Point(520, 152); @@ -368,7 +368,7 @@ // this.lblPoints.Location = new System.Drawing.Point(358, 8); this.lblPoints.Name = "lblPoints"; - this.lblPoints.Size = new System.Drawing.Size(100, 21); + this.lblPoints.Size = new System.Drawing.Size(88, 21); this.lblPoints.TabIndex = 12; // // FrmUnit @@ -393,8 +393,8 @@ this.ShowInTaskbar = false; this.Text = "FrmUnit"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmUnit_FormClosing); - ((System.ComponentModel.ISupportInitialize)(this.statsGrid)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.unitSize)).EndInit(); + ((System.ComponentModel.ISupportInitialize) (this.statsGrid)).EndInit(); + ((System.ComponentModel.ISupportInitialize) (this.unitSize)).EndInit(); this.ResumeLayout(false); this.PerformLayout();