diff options
| author | FloppyDiskDrive <[email protected]> | 2017-09-25 17:49:40 -0500 |
|---|---|---|
| committer | FloppyDiskDrive <[email protected]> | 2017-09-25 17:49:40 -0500 |
| commit | dc7533184a88271bfd2a3aae299532ec7632144d (patch) | |
| tree | 5ec80c52c6b500c543ee265a9936f75e42c5e569 /ShiftOS.Engine/WindowManager/InfoboxTemplate.cs | |
| parent | 44d8d5c50749b70e93dd5ccf8718645d8c3d2fad (diff) | |
| download | shiftos-rewind-dc7533184a88271bfd2a3aae299532ec7632144d.tar.gz shiftos-rewind-dc7533184a88271bfd2a3aae299532ec7632144d.tar.bz2 shiftos-rewind-dc7533184a88271bfd2a3aae299532ec7632144d.zip | |
Added titlebar button hughlighting / pushing
Diffstat (limited to 'ShiftOS.Engine/WindowManager/InfoboxTemplate.cs')
| -rw-r--r-- | ShiftOS.Engine/WindowManager/InfoboxTemplate.cs | 9 |
1 files changed, 8 insertions, 1 deletions
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; + } } } |
