Resource options form: fixed a problem where the text box containing the path to the file could be focused. (backport from UDB)

This commit is contained in:
spherallic 2023-04-24 23:46:18 +02:00
parent 0ff14fc5e7
commit 71fd3df676
2 changed files with 35 additions and 12 deletions

View File

@ -159,6 +159,8 @@ namespace CodeImp.DoomBuilder.Windows
this.wadlocation.ReadOnly = true; this.wadlocation.ReadOnly = true;
this.wadlocation.Size = new System.Drawing.Size(292, 20); this.wadlocation.Size = new System.Drawing.Size(292, 20);
this.wadlocation.TabIndex = 0; this.wadlocation.TabIndex = 0;
this.wadlocation.TabStop = false;
this.wadlocation.Enter += new System.EventHandler(this.wadlocation_Enter);
// //
// directorytab // directorytab
// //
@ -230,6 +232,8 @@ namespace CodeImp.DoomBuilder.Windows
this.dirlocation.ReadOnly = true; this.dirlocation.ReadOnly = true;
this.dirlocation.Size = new System.Drawing.Size(292, 20); this.dirlocation.Size = new System.Drawing.Size(292, 20);
this.dirlocation.TabIndex = 0; this.dirlocation.TabIndex = 0;
this.dirlocation.TabStop = false;
this.dirlocation.Enter += new System.EventHandler(this.dirlocation_Enter);
// //
// pk3filetab // pk3filetab
// //
@ -276,6 +280,8 @@ namespace CodeImp.DoomBuilder.Windows
this.pk3location.ReadOnly = true; this.pk3location.ReadOnly = true;
this.pk3location.Size = new System.Drawing.Size(292, 20); this.pk3location.Size = new System.Drawing.Size(292, 20);
this.pk3location.TabIndex = 0; this.pk3location.TabIndex = 0;
this.pk3location.TabStop = false;
this.pk3location.Enter += new System.EventHandler(this.pk3location_Enter);
// //
// cancel // cancel
// //

View File

@ -230,5 +230,22 @@ namespace CodeImp.DoomBuilder.Windows
General.ShowHelp("w_resourceoptions.html"); General.ShowHelp("w_resourceoptions.html");
hlpevent.Handled = true; hlpevent.Handled = true;
} }
private void wadlocation_Enter(object sender, EventArgs e)
{
// Stop textbox control from getting focus
browsewad.Focus();
}
private void dirlocation_Enter(object sender, EventArgs e)
{
// Stop textbox control from getting focus
browsedir.Focus();
}
private void pk3location_Enter(object sender, EventArgs e)
{
// Stop textbox control from getting focus
browsepk3.Focus();
}
} }
} }