diff options
| author | Michael <[email protected]> | 2017-04-15 20:21:11 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-15 20:21:11 -0400 |
| commit | 56e216a430694d86c242df763484deba682f3302 (patch) | |
| tree | 51c6b10eed2ac7208825988ecac346dbb09281f3 /ShiftOS.WinForms/WindowBorder.cs | |
| parent | 0807e04881336ef51b1c473d2e61d344c8bef113 (diff) | |
| download | shiftos_thereturn-56e216a430694d86c242df763484deba682f3302.tar.gz shiftos_thereturn-56e216a430694d86c242df763484deba682f3302.tar.bz2 shiftos_thereturn-56e216a430694d86c242df763484deba682f3302.zip | |
Hide AL when clicking on window ctrls
Diffstat (limited to 'ShiftOS.WinForms/WindowBorder.cs')
| -rw-r--r-- | ShiftOS.WinForms/WindowBorder.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/WindowBorder.cs b/ShiftOS.WinForms/WindowBorder.cs index e809f90..64f2da4 100644 --- a/ShiftOS.WinForms/WindowBorder.cs +++ b/ShiftOS.WinForms/WindowBorder.cs @@ -92,6 +92,16 @@ namespace ShiftOS.WinForms lbtitletext.Text = title; } + public void SetupControls(Control ctrl) + { + foreach (Control c in ctrl.Controls) + SetupControls(c); + ctrl.Click += (o, a) => + { + Desktop.HideAppLauncher(); + }; + } + /// <summary> /// Initializes a new instance of the <see cref="ShiftOS.WinForms.WindowBorder"/> class. /// </summary> @@ -127,6 +137,8 @@ namespace ShiftOS.WinForms this.Width = LoadedSkin.LeftBorderWidth + _parentWindow.Width + LoadedSkin.RightBorderWidth; this.Height = LoadedSkin.TitlebarHeight + _parentWindow.Height + LoadedSkin.BottomBorderWidth; + SetupControls(this); + this.pnlcontents.Controls.Add(this._parentWindow); this._parentWindow.Dock = DockStyle.Fill; this._parentWindow.Show(); |
