aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/WinformsDesktop.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-04 14:19:45 -0500
committerMichael <[email protected]>2017-02-04 14:19:45 -0500
commit9a37e472fb4e85a1838e06c03eb1632557a6f13c (patch)
tree13b1562e1c4cad9e6af389d7b554865c5f16d289 /ShiftOS.WinForms/WinformsDesktop.cs
parent9a9ec274d32b78291c9ca489a0cc7ce45e85907e (diff)
downloadshiftos_thereturn-9a37e472fb4e85a1838e06c03eb1632557a6f13c.tar.gz
shiftos_thereturn-9a37e472fb4e85a1838e06c03eb1632557a6f13c.tar.bz2
shiftos_thereturn-9a37e472fb4e85a1838e06c03eb1632557a6f13c.zip
Fix shiftnet crash with custom cursors
Diffstat (limited to 'ShiftOS.WinForms/WinformsDesktop.cs')
-rw-r--r--ShiftOS.WinForms/WinformsDesktop.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs
index c45feee..7f8f232 100644
--- a/ShiftOS.WinForms/WinformsDesktop.cs
+++ b/ShiftOS.WinForms/WinformsDesktop.cs
@@ -109,6 +109,16 @@ namespace ShiftOS.WinForms
time.Start();
this.DoubleBuffered = true;
+ SetCursors(this);
+ }
+
+ public void SetCursors(Control ctrl)
+ {
+ ControlManager.SetupControl(ctrl);
+ foreach(Control child in ctrl.Controls)
+ {
+ SetCursors(child);
+ }
}
/// <summary>
@@ -178,6 +188,7 @@ namespace ShiftOS.WinForms
pnlbtn.Click += onClick;
pnlbtntext.Click += onClick;
}
+ SetCursors(pnlbtn);
}
}
}