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

# Line 90 | Line 90 | namespace RomCheater
90                  int value = (int)flags;
91  
92                  CheckBox chkloggerflags = new CheckBox();
93 +                chkloggerflags.Font = this.Font;
94                  chkloggerflags.Name = name;
95                  chkloggerflags.Text = name;
96                  chkloggerflags.Tag = value;
97 +                Graphics g = chkloggerflags.CreateGraphics();
98 +
99 +                Size size = g.MeasureString(chkloggerflags.Text, chkloggerflags.Font).ToSize();
100 +                chkloggerflags.Width = size.Width + 25;
101 +
102                  grpLoggingFlags_flow.Controls.Add(chkloggerflags);
103                  logger.Debug.WriteLine("\tAdding logger flag: {0} value: 0x{1:x4}", name, value);
104  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines