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

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

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

--- trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs	2013/06/09 04:03:36	657
+++ trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs	2013/06/17 02:21:26	658
@@ -9,9 +9,13 @@
 
 namespace System.Windows.Forms
 {
+    
     [DefaultEvent("ValueChanged")]
     public partial class MaskedHexBox : UserControl
     {
+        const int ReferenceWidthPixels = 114;
+        const double ReferenceWidthPercent = 0.50;
+
         public MaskedHexBox()
         {
             InitializeComponent();
@@ -45,17 +49,27 @@
             if (e.KeyCode > Keys.F && e.KeyCode <= Keys.Z && !e.Control && !e.Alt)
             {
                 e.SuppressKeyPress = true;
-            }
+            }            
         }
 
 
+
+
+
+        new public int Width { get { return base.Width; } set { base.Width = value; } }
+
+        
+
         new public Font Font
         {
             get { return base.Font; }
             set
             {
                 base.Font = value;
-                txtMaskedHexBox.Font = value;
+
+                Font t = value;
+
+                txtMaskedHexBox.Font = new Font(t.FontFamily, t.SizeInPoints + 4, t.Style);
                 btnCopy.Font = value;
                 btnPaste.Font = value;
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22