From dc7533184a88271bfd2a3aae299532ec7632144d Mon Sep 17 00:00:00 2001 From: FloppyDiskDrive Date: Mon, 25 Sep 2017 17:49:40 -0500 Subject: Added titlebar button hughlighting / pushing --- ShiftOS.Engine/WindowManager/InfoboxTemplate.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ShiftOS.Engine/WindowManager/InfoboxTemplate.cs') diff --git a/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs b/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs index f261ace..c1921a6 100644 --- a/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs +++ b/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs @@ -20,12 +20,13 @@ namespace ShiftOS.Engine.WindowManager public InfoboxTemplate(buttonType type) { InitializeComponent(); + switch (type) { case buttonType.OK: btnOpt1.Text = "OK"; btnOpt2.Hide(); - btnOpt1.Location = new Point(122, 134); + btnOpt1.Location = new Point(109, 134); buttonChoice = 1; break; case buttonType.OKCancel: @@ -86,5 +87,11 @@ namespace ShiftOS.Engine.WindowManager { Play(); } + + private void changeSize_Tick(object sender, EventArgs e) + { + this.Height += label1.Height; + this.Width += label1.Width; + } } } -- cgit v1.2.3