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