Path Config - when clicking a tab, focus on the base path textbox

This commit is contained in:
adelikat 2012-09-27 01:37:56 +00:00
parent d4c89015a7
commit 00f9e05d5e
3 changed files with 870 additions and 872 deletions

View File

@ -69,16 +69,19 @@
this.BrowseAVI = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.NESBaseBox = new System.Windows.Forms.TextBox();
this.NESPaletteDescription = new System.Windows.Forms.Label();
this.NESBrowsePalette = new System.Windows.Forms.Button();
this.NESPaletteBox = new System.Windows.Forms.TextBox();
this.NESCheatsDescription = new System.Windows.Forms.Label();
this.NESBrowseCheats = new System.Windows.Forms.Button();
this.NESCheatsBox = new System.Windows.Forms.TextBox();
this.NESBaseBox = new System.Windows.Forms.TextBox();
this.NESBaseDescription = new System.Windows.Forms.Label();
this.BrowseNESBase = new System.Windows.Forms.Button();
this.tabPage12 = new System.Windows.Forms.TabPage();
this.SNESSGBDescription = new System.Windows.Forms.Label();
this.SNESBrowseSGB = new System.Windows.Forms.Button();
this.SNESSGBBox = new System.Windows.Forms.TextBox();
this.SNESCheatsDescription = new System.Windows.Forms.Label();
this.SNESBrowseCheats = new System.Windows.Forms.Button();
this.SNESCheatsBox = new System.Windows.Forms.TextBox();
@ -277,9 +280,6 @@
this.BaseDescription = new System.Windows.Forms.Label();
this.RecentForROMs = new System.Windows.Forms.CheckBox();
this.SaveButton = new System.Windows.Forms.Button();
this.SNESSGBBox = new System.Windows.Forms.TextBox();
this.SNESBrowseSGB = new System.Windows.Forms.Button();
this.SNESSGBDescription = new System.Windows.Forms.Label();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage12.SuspendLayout();
@ -325,7 +325,7 @@
this.WatchBox.Location = new System.Drawing.Point(13, 105);
this.WatchBox.Name = "WatchBox";
this.WatchBox.Size = new System.Drawing.Size(364, 20);
this.WatchBox.TabIndex = 124;
this.WatchBox.TabIndex = 135;
//
// WatchDescription
//
@ -344,7 +344,7 @@
this.BrowseWatch.Location = new System.Drawing.Point(385, 105);
this.BrowseWatch.Name = "BrowseWatch";
this.BrowseWatch.Size = new System.Drawing.Size(26, 23);
this.BrowseWatch.TabIndex = 125;
this.BrowseWatch.TabIndex = 138;
this.BrowseWatch.UseVisualStyleBackColor = true;
this.BrowseWatch.Click += new System.EventHandler(this.BrowseWatch_Click);
//
@ -385,7 +385,7 @@
this.LuaBox.Location = new System.Drawing.Point(13, 75);
this.LuaBox.Name = "LuaBox";
this.LuaBox.Size = new System.Drawing.Size(364, 20);
this.LuaBox.TabIndex = 122;
this.LuaBox.TabIndex = 130;
//
// LuaDescription
//
@ -404,7 +404,7 @@
this.BrowseLua.Location = new System.Drawing.Point(385, 75);
this.BrowseLua.Name = "BrowseLua";
this.BrowseLua.Size = new System.Drawing.Size(26, 23);
this.BrowseLua.TabIndex = 123;
this.BrowseLua.TabIndex = 133;
this.BrowseLua.UseVisualStyleBackColor = true;
this.BrowseLua.Click += new System.EventHandler(this.BrowseLua_Click);
//
@ -656,8 +656,7 @@
this.AVIBox.Location = new System.Drawing.Point(13, 135);
this.AVIBox.Name = "AVIBox";
this.AVIBox.Size = new System.Drawing.Size(364, 20);
this.AVIBox.TabIndex = 126;
this.AVIBox.TabStop = false;
this.AVIBox.TabIndex = 140;
//
// AVIDescription
//
@ -676,7 +675,7 @@
this.BrowseAVI.Location = new System.Drawing.Point(385, 135);
this.BrowseAVI.Name = "BrowseAVI";
this.BrowseAVI.Size = new System.Drawing.Size(26, 23);
this.BrowseAVI.TabIndex = 127;
this.BrowseAVI.TabIndex = 145;
this.BrowseAVI.UseVisualStyleBackColor = true;
this.BrowseAVI.Click += new System.EventHandler(this.BrowseAVI_Click);
//
@ -707,13 +706,13 @@
//
// tabPage1
//
this.tabPage1.Controls.Add(this.NESBaseBox);
this.tabPage1.Controls.Add(this.NESPaletteDescription);
this.tabPage1.Controls.Add(this.NESBrowsePalette);
this.tabPage1.Controls.Add(this.NESPaletteBox);
this.tabPage1.Controls.Add(this.NESCheatsDescription);
this.tabPage1.Controls.Add(this.NESBrowseCheats);
this.tabPage1.Controls.Add(this.NESCheatsBox);
this.tabPage1.Controls.Add(this.NESBaseBox);
this.tabPage1.Controls.Add(this.NESBaseDescription);
this.tabPage1.Controls.Add(this.BrowseNESBase);
this.tabPage1.Controls.Add(this.NESROMsBox);
@ -736,6 +735,15 @@
this.tabPage1.Text = "NES";
this.tabPage1.UseVisualStyleBackColor = true;
//
// NESBaseBox
//
this.NESBaseBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.NESBaseBox.Location = new System.Drawing.Point(13, 21);
this.NESBaseBox.Name = "NESBaseBox";
this.NESBaseBox.Size = new System.Drawing.Size(421, 20);
this.NESBaseBox.TabIndex = 3;
//
// NESPaletteDescription
//
this.NESPaletteDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@ -798,15 +806,6 @@
this.NESCheatsBox.Size = new System.Drawing.Size(421, 20);
this.NESCheatsBox.TabIndex = 13;
//
// NESBaseBox
//
this.NESBaseBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.NESBaseBox.Location = new System.Drawing.Point(13, 21);
this.NESBaseBox.Name = "NESBaseBox";
this.NESBaseBox.Size = new System.Drawing.Size(421, 20);
this.NESBaseBox.TabIndex = 3;
//
// NESBaseDescription
//
this.NESBaseDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@ -830,13 +829,13 @@
//
// tabPage12
//
this.tabPage12.Controls.Add(this.SNESBaseBox);
this.tabPage12.Controls.Add(this.SNESSGBDescription);
this.tabPage12.Controls.Add(this.SNESBrowseSGB);
this.tabPage12.Controls.Add(this.SNESSGBBox);
this.tabPage12.Controls.Add(this.SNESCheatsDescription);
this.tabPage12.Controls.Add(this.SNESBrowseCheats);
this.tabPage12.Controls.Add(this.SNESCheatsBox);
this.tabPage12.Controls.Add(this.SNESBaseBox);
this.tabPage12.Controls.Add(this.SNESBaseDescription);
this.tabPage12.Controls.Add(this.BrowseSNESBase);
this.tabPage12.Controls.Add(this.SNESROMsBox);
@ -858,6 +857,34 @@
this.tabPage12.Text = "SNES";
this.tabPage12.UseVisualStyleBackColor = true;
//
// SNESSGBDescription
//
this.SNESSGBDescription.AutoSize = true;
this.SNESSGBDescription.Location = new System.Drawing.Point(474, 214);
this.SNESSGBDescription.Name = "SNESSGBDescription";
this.SNESSGBDescription.Size = new System.Drawing.Size(54, 13);
this.SNESSGBDescription.TabIndex = 47;
this.SNESSGBDescription.Text = "SGB Rom";
//
// SNESBrowseSGB
//
this.SNESBrowseSGB.Image = global::BizHawk.MultiClient.Properties.Resources.OpenFile;
this.SNESBrowseSGB.Location = new System.Drawing.Point(442, 209);
this.SNESBrowseSGB.Name = "SNESBrowseSGB";
this.SNESBrowseSGB.Size = new System.Drawing.Size(26, 23);
this.SNESBrowseSGB.TabIndex = 46;
this.SNESBrowseSGB.UseVisualStyleBackColor = true;
this.SNESBrowseSGB.Click += new System.EventHandler(this.SNESBrowseSGB_Click);
//
// SNESSGBBox
//
this.SNESSGBBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.SNESSGBBox.Location = new System.Drawing.Point(13, 211);
this.SNESSGBBox.Name = "SNESSGBBox";
this.SNESSGBBox.Size = new System.Drawing.Size(421, 20);
this.SNESSGBBox.TabIndex = 45;
//
// SNESCheatsDescription
//
this.SNESCheatsDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@ -1040,10 +1067,10 @@
//
// tabPage2
//
this.tabPage2.Controls.Add(this.Sega8BaseBox);
this.tabPage2.Controls.Add(this.Sega8CheatsDescription);
this.tabPage2.Controls.Add(this.Sega8BrowseCheats);
this.tabPage2.Controls.Add(this.Sega8CheatsBox);
this.tabPage2.Controls.Add(this.Sega8BaseBox);
this.tabPage2.Controls.Add(this.Sega8ScreenshotsBox);
this.tabPage2.Controls.Add(this.Sega8BaseDescription);
this.tabPage2.Controls.Add(this.Sega8ScreenshotsDescription);
@ -1128,10 +1155,10 @@
//
// tabPage9
//
this.tabPage9.Controls.Add(this.SGBaseBox);
this.tabPage9.Controls.Add(this.SGCheatsDescription);
this.tabPage9.Controls.Add(this.SGBrowseCheats);
this.tabPage9.Controls.Add(this.SGCheatsBox);
this.tabPage9.Controls.Add(this.SGBaseBox);
this.tabPage9.Controls.Add(this.SGBaseDescription);
this.tabPage9.Controls.Add(this.SGBrowseBase);
this.tabPage9.Controls.Add(this.SGROMsBox);
@ -1336,10 +1363,10 @@
//
// tabPage8
//
this.tabPage8.Controls.Add(this.GGBaseBox);
this.tabPage8.Controls.Add(this.GGCheatsDescription);
this.tabPage8.Controls.Add(this.GGBrowseCheats);
this.tabPage8.Controls.Add(this.GGCheatsBox);
this.tabPage8.Controls.Add(this.GGBaseBox);
this.tabPage8.Controls.Add(this.GGScreenshotsBox);
this.tabPage8.Controls.Add(this.GGBaseDescription);
this.tabPage8.Controls.Add(this.GGScreenshotsDescription);
@ -1543,10 +1570,10 @@
//
// tabPage3
//
this.tabPage3.Controls.Add(this.GenesisBaseBox);
this.tabPage3.Controls.Add(this.GenesisCheatsDescription);
this.tabPage3.Controls.Add(this.GenesisBrowseCheats);
this.tabPage3.Controls.Add(this.GenesisCheatsBox);
this.tabPage3.Controls.Add(this.GenesisBaseBox);
this.tabPage3.Controls.Add(this.GenesisScreenshotsBox);
this.tabPage3.Controls.Add(this.GenesisBrowseSaveRAM);
this.tabPage3.Controls.Add(this.GenesisBrowseROMs);
@ -1750,13 +1777,13 @@
//
// tabPage4
//
this.tabPage4.Controls.Add(this.PCEBaseBox);
this.tabPage4.Controls.Add(this.PCEBiosDescription);
this.tabPage4.Controls.Add(this.PCEBrowseBios);
this.tabPage4.Controls.Add(this.PCEBiosBox);
this.tabPage4.Controls.Add(this.PCECheatsDescription);
this.tabPage4.Controls.Add(this.PCEBrowseCheats);
this.tabPage4.Controls.Add(this.PCECheatsBox);
this.tabPage4.Controls.Add(this.PCEBaseBox);
this.tabPage4.Controls.Add(this.PCEScreenshotsBox);
this.tabPage4.Controls.Add(this.PCEBaseDescription);
this.tabPage4.Controls.Add(this.PCEScreenshotsDescription);
@ -1993,13 +2020,13 @@
//
// tabPage5
//
this.tabPage5.Controls.Add(this.GBBaseBox);
this.tabPage5.Controls.Add(this.GBPalettesBox);
this.tabPage5.Controls.Add(this.GBBrowsePalettes);
this.tabPage5.Controls.Add(this.GBPalettesDescription);
this.tabPage5.Controls.Add(this.GBCheatsDescription);
this.tabPage5.Controls.Add(this.GBBrowseCheats);
this.tabPage5.Controls.Add(this.GBCheatsBox);
this.tabPage5.Controls.Add(this.GBBaseBox);
this.tabPage5.Controls.Add(this.GBScreenshotsBox);
this.tabPage5.Controls.Add(this.GBBaseDescription);
this.tabPage5.Controls.Add(this.GBScreenshotsDescription);
@ -2028,7 +2055,7 @@
this.GBPalettesBox.Location = new System.Drawing.Point(12, 209);
this.GBPalettesBox.Name = "GBPalettesBox";
this.GBPalettesBox.Size = new System.Drawing.Size(364, 20);
this.GBPalettesBox.TabIndex = 104;
this.GBPalettesBox.TabIndex = 103;
//
// GBBrowsePalettes
//
@ -2037,7 +2064,7 @@
this.GBBrowsePalettes.Location = new System.Drawing.Point(385, 209);
this.GBBrowsePalettes.Name = "GBBrowsePalettes";
this.GBBrowsePalettes.Size = new System.Drawing.Size(26, 23);
this.GBBrowsePalettes.TabIndex = 103;
this.GBBrowsePalettes.TabIndex = 104;
this.GBBrowsePalettes.UseVisualStyleBackColor = true;
this.GBBrowsePalettes.Click += new System.EventHandler(this.GBBrowsePalettes_Click);
//
@ -2233,10 +2260,10 @@
//
// tabPage6
//
this.tabPage6.Controls.Add(this.TI83BaseBox);
this.tabPage6.Controls.Add(this.TI83CheatsDescription);
this.tabPage6.Controls.Add(this.TI83BrowseBox);
this.tabPage6.Controls.Add(this.TI83CheatsBox);
this.tabPage6.Controls.Add(this.TI83BaseBox);
this.tabPage6.Controls.Add(this.TI83ScreenshotsBox);
this.tabPage6.Controls.Add(this.TI83BaseDescription);
this.tabPage6.Controls.Add(this.TI83ScreenshotsDescription);
@ -2442,10 +2469,10 @@
//
// tabPage10
//
this.tabPage10.Controls.Add(this.AtariBaseBox);
this.tabPage10.Controls.Add(this.AtariCheatsDescription);
this.tabPage10.Controls.Add(this.AtariBrowseCheats);
this.tabPage10.Controls.Add(this.AtariCheatsBox);
this.tabPage10.Controls.Add(this.AtariBaseBox);
this.tabPage10.Controls.Add(this.AtariBaseDescription);
this.tabPage10.Controls.Add(this.BrowseAtariBase);
this.tabPage10.Controls.Add(this.AtariROMsBox);
@ -2650,6 +2677,7 @@
//
// tabPage11
//
this.tabPage11.Controls.Add(this.INTVBaseBox);
this.tabPage11.Controls.Add(this.INTVGROMDescription);
this.tabPage11.Controls.Add(this.INTVBroseGROM);
this.tabPage11.Controls.Add(this.INTVGROMBox);
@ -2659,7 +2687,6 @@
this.tabPage11.Controls.Add(this.INTVCheatsDescription);
this.tabPage11.Controls.Add(this.INTVBrowseCheats);
this.tabPage11.Controls.Add(this.INTVCheatsBox);
this.tabPage11.Controls.Add(this.INTVBaseBox);
this.tabPage11.Controls.Add(this.INTVScreenshotsBox);
this.tabPage11.Controls.Add(this.INTVBaseDescription);
this.tabPage11.Controls.Add(this.INTVScreenshotsDescription);
@ -2927,11 +2954,11 @@
//
// tabPage7
//
this.tabPage7.Controls.Add(this.MoviesBox);
this.tabPage7.Controls.Add(this.MovieBackupsBox);
this.tabPage7.Controls.Add(this.BrowseMovieBackups);
this.tabPage7.Controls.Add(this.MovieBackupsDescription);
this.tabPage7.Controls.Add(this.AVIBox);
this.tabPage7.Controls.Add(this.MoviesBox);
this.tabPage7.Controls.Add(this.AVIDescription);
this.tabPage7.Controls.Add(this.BrowseAVI);
this.tabPage7.Controls.Add(this.WatchBox);
@ -2956,7 +2983,7 @@
this.MovieBackupsBox.Location = new System.Drawing.Point(13, 49);
this.MovieBackupsBox.Name = "MovieBackupsBox";
this.MovieBackupsBox.Size = new System.Drawing.Size(364, 20);
this.MovieBackupsBox.TabIndex = 129;
this.MovieBackupsBox.TabIndex = 125;
//
// BrowseMovieBackups
//
@ -2965,7 +2992,7 @@
this.BrowseMovieBackups.Location = new System.Drawing.Point(385, 49);
this.BrowseMovieBackups.Name = "BrowseMovieBackups";
this.BrowseMovieBackups.Size = new System.Drawing.Size(26, 23);
this.BrowseMovieBackups.TabIndex = 130;
this.BrowseMovieBackups.TabIndex = 128;
this.BrowseMovieBackups.UseVisualStyleBackColor = true;
this.BrowseMovieBackups.Click += new System.EventHandler(this.BrowseMovieBackups_Click);
//
@ -3031,34 +3058,6 @@
this.SaveButton.UseVisualStyleBackColor = true;
this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
//
// SNESSGBBox
//
this.SNESSGBBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.SNESSGBBox.Location = new System.Drawing.Point(13, 211);
this.SNESSGBBox.Name = "SNESSGBBox";
this.SNESSGBBox.Size = new System.Drawing.Size(421, 20);
this.SNESSGBBox.TabIndex = 45;
//
// SNESBrowseSGB
//
this.SNESBrowseSGB.Image = global::BizHawk.MultiClient.Properties.Resources.OpenFile;
this.SNESBrowseSGB.Location = new System.Drawing.Point(442, 209);
this.SNESBrowseSGB.Name = "SNESBrowseSGB";
this.SNESBrowseSGB.Size = new System.Drawing.Size(26, 23);
this.SNESBrowseSGB.TabIndex = 46;
this.SNESBrowseSGB.UseVisualStyleBackColor = true;
this.SNESBrowseSGB.Click += new System.EventHandler(this.SNESBrowseSGB_Click);
//
// SNESSGBDescription
//
this.SNESSGBDescription.AutoSize = true;
this.SNESSGBDescription.Location = new System.Drawing.Point(474, 214);
this.SNESSGBDescription.Name = "SNESSGBDescription";
this.SNESSGBDescription.Size = new System.Drawing.Size(54, 13);
this.SNESSGBDescription.TabIndex = 47;
this.SNESSGBDescription.Text = "SGB Rom";
//
// PathConfig
//
this.AcceptButton = this.OK;

View File

@ -261,8 +261,7 @@ namespace BizHawk.MultiClient
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
//TODO: make base text box Controls[0] so this will focus on it
//tabControl1.TabPages[tabControl1.SelectedIndex].Controls[0].Focus();
tabControl1.TabPages[tabControl1.SelectedIndex].Controls[0].Focus();
}
private void RecentForROMs_CheckedChanged(object sender, EventArgs e)

File diff suppressed because it is too large Load Diff