ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/RomCheaterConfigDialog.cs
(Generate patch)

Comparing trunk/RomCheater/RomCheaterConfigDialog.cs (file contents):
Revision 98 by william, Wed May 9 22:31:56 2012 UTC vs.
Revision 99 by william, Wed May 9 23:23:38 2012 UTC

--- trunk/RomCheater/RomCheaterConfigDialog.cs	2012/05/09 23:10:12	98
+++ trunk/RomCheater/RomCheaterConfigDialog.cs	2012/05/09 23:23:38	99
@@ -90,9 +90,15 @@ namespace RomCheater
                 int value = (int)flags;
 
                 CheckBox chkloggerflags = new CheckBox();
+                chkloggerflags.Font = this.Font;
                 chkloggerflags.Name = name;
                 chkloggerflags.Text = name;
                 chkloggerflags.Tag = value;
+                Graphics g = chkloggerflags.CreateGraphics();
+
+                Size size = g.MeasureString(chkloggerflags.Text, chkloggerflags.Font).ToSize();
+                chkloggerflags.Width = size.Width + 25;
+
                 grpLoggingFlags_flow.Controls.Add(chkloggerflags);
                 logger.Debug.WriteLine("\tAdding logger flag: {0} value: 0x{1:x4}", name, value);