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

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

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

--- trunk/Win32/libWin32/Win32/UI/FloatBox.cs	2012/06/02 14:29:00	225
+++ trunk/Win32/libWin32/Win32/UI/FloatBox.cs	2012/06/02 14:54:17	226
@@ -29,5 +29,13 @@
         ////    get { return base.Text; }
         ////    set { base.Text = 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