aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/Infobox.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-24 21:09:48 -0400
committerMichael <[email protected]>2017-07-24 21:09:48 -0400
commit2cd1452ff1dd9813cedb15ee18bf9a84e0baaf84 (patch)
tree257a13c3c1ff5752d872a6da5292ab7f551f7699 /ShiftOS.Frontend/Infobox.cs
parent5ab60d77068edce177841e94b8260e1a40231730 (diff)
downloadshiftos_thereturn-2cd1452ff1dd9813cedb15ee18bf9a84e0baaf84.tar.gz
shiftos_thereturn-2cd1452ff1dd9813cedb15ee18bf9a84e0baaf84.tar.bz2
shiftos_thereturn-2cd1452ff1dd9813cedb15ee18bf9a84e0baaf84.zip
Fucking fuckrape the motherfucking winforms proj
Diffstat (limited to 'ShiftOS.Frontend/Infobox.cs')
-rw-r--r--ShiftOS.Frontend/Infobox.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/ShiftOS.Frontend/Infobox.cs b/ShiftOS.Frontend/Infobox.cs
index 21b5538..cc10f0e 100644
--- a/ShiftOS.Frontend/Infobox.cs
+++ b/ShiftOS.Frontend/Infobox.cs
@@ -91,6 +91,7 @@ namespace ShiftOS.Frontend
callback?.Invoke(txtinput.Text);
AppearanceManager.Close(this);
};
+ txtinput.BringToFront();
}
public void OnSkinLoad()
@@ -176,6 +177,7 @@ namespace ShiftOS.Frontend
this.Width = 341;
this.Height = 157;
this.AddControl(pbicon);
+ this.AddControl(txtinput);
this.AddControl(btnok);
this.AddControl(flyesno);
this.AddControl(lbmessage);
@@ -187,6 +189,14 @@ namespace ShiftOS.Frontend
{
btnok.Y = this.Height - btnok.Height - 10;
flyesno.Y = this.Height - flyesno.Height - 10;
+ txtinput.Width = lbmessage.Width;
+ txtinput.X = lbmessage.X;
+ txtinput.Y = btnok.Y - txtinput.Height - 2;
+ if (txtinput.Visible)
+ {
+ lbmessage.Height = (txtinput.Y - lbmessage.Y) - 2;
+ }
+
}
catch { }
}