Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
diff FrmNewArmy.cs @ 138:18d607b0249b
Re #203: Translate to multiple languages
* Add French translation from Dreadaxe
Re #88: Complete initial WinForms UI
* Resize new army form and text widgets on unit form to allow space for longer French translations
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 06 Apr 2010 13:13:24 +0000 |
parents | 39b93ca5fb9c |
children | 0e17097db8e5 |
line wrap: on
line diff
--- a/FrmNewArmy.cs Sat Apr 03 20:06:33 2010 +0000 +++ b/FrmNewArmy.cs Tue Apr 06 13:13:24 2010 +0000 @@ -107,10 +107,12 @@ // // lstRaces // + this.lstRaces.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.lstRaces.DisplayMember = "Name"; - this.lstRaces.Location = new System.Drawing.Point(110, 33); + this.lstRaces.Location = new System.Drawing.Point(141, 33); this.lstRaces.Name = "lstRaces"; - this.lstRaces.Size = new System.Drawing.Size(248, 121); + this.lstRaces.Size = new System.Drawing.Size(265, 121); this.lstRaces.TabIndex = 7; this.lstRaces.SelectedIndexChanged += new System.EventHandler(this.lstRaces_SelectedIndexChanged); // @@ -129,18 +131,20 @@ // this.lblRaceList.Location = new System.Drawing.Point(12, 33); this.lblRaceList.Name = "lblRaceList"; - this.lblRaceList.Size = new System.Drawing.Size(92, 80); + this.lblRaceList.Size = new System.Drawing.Size(123, 80); this.lblRaceList.TabIndex = 5; this.lblRaceList.Text = "race list"; this.lblRaceList.TextAlign = System.Drawing.ContentAlignment.TopRight; // // bttnSelectRace // + this.bttnSelectRace.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.bttnSelectRace.Enabled = false; this.bttnSelectRace.FlatStyle = System.Windows.Forms.FlatStyle.System; this.bttnSelectRace.Location = new System.Drawing.Point(254, 231); this.bttnSelectRace.Name = "bttnSelectRace"; - this.bttnSelectRace.Size = new System.Drawing.Size(104, 24); + this.bttnSelectRace.Size = new System.Drawing.Size(152, 24); this.bttnSelectRace.TabIndex = 4; this.bttnSelectRace.Text = "create army"; this.bttnSelectRace.Click += new System.EventHandler(this.bttnSelectRace_Click); @@ -149,16 +153,18 @@ // this.lblArmyName.Location = new System.Drawing.Point(12, 163); this.lblArmyName.Name = "lblArmyName"; - this.lblArmyName.Size = new System.Drawing.Size(92, 17); + this.lblArmyName.Size = new System.Drawing.Size(123, 17); this.lblArmyName.TabIndex = 8; this.lblArmyName.Text = "army name"; this.lblArmyName.TextAlign = System.Drawing.ContentAlignment.TopRight; // // txtArmyName // - this.txtArmyName.Location = new System.Drawing.Point(110, 160); + this.txtArmyName.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtArmyName.Location = new System.Drawing.Point(141, 160); this.txtArmyName.Name = "txtArmyName"; - this.txtArmyName.Size = new System.Drawing.Size(248, 20); + this.txtArmyName.Size = new System.Drawing.Size(265, 20); this.txtArmyName.TabIndex = 9; this.txtArmyName.TextChanged += new System.EventHandler(this.txtArmyName_TextChanged); // @@ -166,7 +172,7 @@ // this.lblArmySize.Location = new System.Drawing.Point(12, 188); this.lblArmySize.Name = "lblArmySize"; - this.lblArmySize.Size = new System.Drawing.Size(92, 18); + this.lblArmySize.Size = new System.Drawing.Size(123, 18); this.lblArmySize.TabIndex = 10; this.lblArmySize.Text = "army size"; this.lblArmySize.TextAlign = System.Drawing.ContentAlignment.TopRight; @@ -178,7 +184,7 @@ 0, 0, 0}); - this.armySize.Location = new System.Drawing.Point(110, 186); + this.armySize.Location = new System.Drawing.Point(141, 186); this.armySize.Maximum = new decimal(new int[] { 1000000, 0, @@ -198,27 +204,27 @@ // this.lblGameSystem.Location = new System.Drawing.Point(12, 9); this.lblGameSystem.Name = "lblGameSystem"; - this.lblGameSystem.Size = new System.Drawing.Size(92, 18); + this.lblGameSystem.Size = new System.Drawing.Size(123, 18); this.lblGameSystem.TabIndex = 12; this.lblGameSystem.Text = "game system"; this.lblGameSystem.TextAlign = System.Drawing.ContentAlignment.TopRight; // // gameSystems // + this.gameSystems.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.gameSystems.DisplayMember = "Name"; this.gameSystems.FormattingEnabled = true; - this.gameSystems.Location = new System.Drawing.Point(110, 6); + this.gameSystems.Location = new System.Drawing.Point(141, 6); this.gameSystems.Name = "gameSystems"; - this.gameSystems.Size = new System.Drawing.Size(248, 21); + this.gameSystems.Size = new System.Drawing.Size(265, 21); this.gameSystems.TabIndex = 13; this.gameSystems.SelectedValueChanged += new System.EventHandler(this.gameSystems_SelectedValueChanged); // // FrmNewArmy // - this.AcceptButton = this.bttnSelectRace; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); - this.CancelButton = this.bttnCancel; - this.ClientSize = new System.Drawing.Size(370, 267); + this.ClientSize = new System.Drawing.Size(418, 267); this.Controls.Add(this.gameSystems); this.Controls.Add(this.lblGameSystem); this.Controls.Add(this.armySize);