/[RomCheater]/trunk/Win32/libWin32/Win32/UI/NumericBox.cs
ViewVC logotype

Diff of /trunk/Win32/libWin32/Win32/UI/NumericBox.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/Win32/libWin32/Win32/UI/NumericBox.cs	2012/06/02 14:29:00	225
+++ trunk/Win32/libWin32/Win32/UI/NumericBox.cs	2012/06/02 14:54:17	226
@@ -21,6 +21,14 @@
         //    get { return base.Value; }
         //    set { base.Value = value; }
         //}
+        protected override void CreateValidKeys(List<Keys> ValidKeys)
+        {
+            base.CreateStandardKeys(ValidKeys);
+            ValidKeys.Add(Keys.Decimal);
+            ValidKeys.Add(Keys.OemPeriod);
+            ValidKeys.AddRange(Enum.GetValues(typeof(Keys)).Cast<Keys>().Where(x => x >= Keys.D0 && x <= Keys.D9));
+            ValidKeys.AddRange(Enum.GetValues(typeof(Keys)).Cast<Keys>().Where(x => x >= Keys.NumPad0 && x <= Keys.NumPad9));
+        }
     }
 }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22