diff options
| author | Michael <[email protected]> | 2017-05-31 19:23:40 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-31 19:23:40 -0400 |
| commit | 324104eb0b8650969b2205404e3ad83401fb100e (patch) | |
| tree | e1345eb1aee68d33eb16aaed57e9567e06a0fdf7 /ShiftOS.WinForms/Tools | |
| parent | b0da30bbde2bb198850ea45dc0006762b23f99a3 (diff) | |
| download | shiftos_thereturn-324104eb0b8650969b2205404e3ad83401fb100e.tar.gz shiftos_thereturn-324104eb0b8650969b2205404e3ad83401fb100e.tar.bz2 shiftos_thereturn-324104eb0b8650969b2205404e3ad83401fb100e.zip | |
volume control slider and other goodies
Diffstat (limited to 'ShiftOS.WinForms/Tools')
| -rw-r--r-- | ShiftOS.WinForms/Tools/ControlManager.cs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/Tools/ControlManager.cs b/ShiftOS.WinForms/Tools/ControlManager.cs index 92482fa..548a62a 100644 --- a/ShiftOS.WinForms/Tools/ControlManager.cs +++ b/ShiftOS.WinForms/Tools/ControlManager.cs @@ -158,6 +158,15 @@ namespace ShiftOS.WinForms.Tools } catch { } + if (!tag.Contains("ignoreal")) + { + ctrl.Click += (o, a) => + { + Desktop.HideAppLauncher(); + }; + + } + if (!tag.Contains("keepbg")) { if (ctrl.BackColor != Control.DefaultBackColor) @@ -279,6 +288,8 @@ namespace ShiftOS.WinForms.Tools { (ctrl as WindowBorder).Setup(); } + + MakeDoubleBuffered(ctrl); ControlSetup?.Invoke(ctrl); }); @@ -305,10 +316,6 @@ namespace ShiftOS.WinForms.Tools public static void SetupControls(Control frm, bool runInThread = true) { - frm.Click += (o, a) => - { - Desktop.HideAppLauncher(); - }; var ctrls = frm.Controls.ToList(); for (int i = 0; i < ctrls.Count(); i++) { |
