From 672b8455fd27cbad041d5ed41ad8d6d3f903a1b1 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Sat, 30 Jul 2011 01:26:13 +0000 Subject: [PATCH] TAStudio - use saved window position, save window size, slight GUI tweaks --- BizHawk.MultiClient/tools/TAStudio.Designer.cs | 8 +++++--- BizHawk.MultiClient/tools/TAStudio.cs | 9 +++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/BizHawk.MultiClient/tools/TAStudio.Designer.cs b/BizHawk.MultiClient/tools/TAStudio.Designer.cs index 653d382877..858a140830 100644 --- a/BizHawk.MultiClient/tools/TAStudio.Designer.cs +++ b/BizHawk.MultiClient/tools/TAStudio.Designer.cs @@ -200,8 +200,8 @@ // this.settingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.saveWindowPositionToolStripMenuItem, - this.restoreWindowToolStripMenuItem, - this.autoloadToolStripMenuItem}); + this.autoloadToolStripMenuItem, + this.restoreWindowToolStripMenuItem}); this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; this.settingsToolStripMenuItem.Size = new System.Drawing.Size(58, 20); this.settingsToolStripMenuItem.Text = "&Settings"; @@ -242,7 +242,7 @@ this.StopButton}); this.toolStrip1.Location = new System.Drawing.Point(37, 27); this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(185, 25); + this.toolStrip1.Size = new System.Drawing.Size(154, 25); this.toolStrip1.TabIndex = 0; // // RewindToBeginning @@ -368,6 +368,8 @@ // // TASView // + this.TASView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); this.TASView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.Frame, this.Log}); diff --git a/BizHawk.MultiClient/tools/TAStudio.cs b/BizHawk.MultiClient/tools/TAStudio.cs index 9c0706aedc..f004f4d432 100644 --- a/BizHawk.MultiClient/tools/TAStudio.cs +++ b/BizHawk.MultiClient/tools/TAStudio.cs @@ -159,6 +159,15 @@ namespace BizHawk.MultiClient { defaultWidth = Size.Width; //Save these first so that the user can restore to its original size defaultHeight = Size.Height; + + if (Global.Config.TAStudioSaveWindowPosition && Global.Config.TASWndx >= 0 && Global.Config.TASWndy >= 0) + this.Location = new Point(Global.Config.TASWndx, Global.Config.TASWndy); + + if (Global.Config.TASWidth >= 0 && Global.Config.TASHeight >= 0) + { + this.Size = new System.Drawing.Size(Global.Config.TASWidth, Global.Config.TASHeight); + } + } private void SaveConfigSettings()