/[RomCheater]/trunk/RomCheater/RomCheaterConfigDialog.cs
ViewVC logotype

Diff of /trunk/RomCheater/RomCheaterConfigDialog.cs

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

--- 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 @@
                 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);
 

 

  ViewVC Help
Powered by ViewVC 1.1.22