aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/Infobox.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-03 22:03:58 -0400
committerMichael <[email protected]>2017-07-03 22:03:58 -0400
commitd23c5cc29dc47537d1cf6069f27009750fd80919 (patch)
tree971c8db7c7ef08c5efa1d867b98bfc01b2096f97 /ShiftOS.Frontend/Infobox.cs
parent23e622ffc37fa7b2f5c21378b60912af46289575 (diff)
downloadshiftos_thereturn-d23c5cc29dc47537d1cf6069f27009750fd80919.tar.gz
shiftos_thereturn-d23c5cc29dc47537d1cf6069f27009750fd80919.tar.bz2
shiftos_thereturn-d23c5cc29dc47537d1cf6069f27009750fd80919.zip
HELP ME. I can't get autoscroll working in terminall.
Diffstat (limited to 'ShiftOS.Frontend/Infobox.cs')
-rw-r--r--ShiftOS.Frontend/Infobox.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/ShiftOS.Frontend/Infobox.cs b/ShiftOS.Frontend/Infobox.cs
index 53b4857..3f47b54 100644
--- a/ShiftOS.Frontend/Infobox.cs
+++ b/ShiftOS.Frontend/Infobox.cs
@@ -79,10 +79,15 @@ namespace ShiftOS.Frontend
public void ShowText(Action<string> callback)
{
- Title = "Not yet implemented.";
- lbmessage.Text = "This feature hasn't yet been implemented.";
- ShowPrompt(null);
-
+ AppearanceManager.SetupDialog(this);
+ flyesno.Visible = false;
+ btnok.Visible = true;
+ txtinput.Visible = true;
+ btnok.Click += () =>
+ {
+ callback?.Invoke(txtinput.Text);
+ AppearanceManager.Close(this);
+ };
}
public void OnSkinLoad()