[Mono-bugs] [Bug 358379] New: AutoSize defaults to true for a RichTextBox

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 3 09:37:11 EST 2008


           Summary: AutoSize defaults to true for a RichTextBox
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: ASSIGNED
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: luke.a.page at gmail.com
        ReportedBy: luke.a.page at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

AutoSize defaults to true for a RichTextBox, when it should be false.

An example of a visual test is the situation where multiline is false and a
font is assigned to the whole RichTextBox - the RichTextBox is re-sized if
AutoSize is true, but not otherwise.. e.g.

using System.Windows.Forms;
using System.Drawing;
using System;
namespace tbtests {
        static class Program {
                static RichTextBox rtb = null;

                static void Main ()
                        Form form = new Form ();
                        rtb = new RichTextBox ();

                        rtb.Dock = DockStyle.Bottom;
                        rtb.Height = 200;
                        rtb.Multiline = false;

                        rtb.SelectionFont = new Font
(FontFamily.GenericSansSerif, 72f);
                        rtb.AppendText ("Big");
                        rtb.SelectionFont = new Font
(FontFamily.GenericSansSerif, 12f);
                        rtb.AppendText ("Small");

                        rtb.Font = new Font (FontFamily.GenericSansSerif, 24f);

                        form.Controls.Add (rtb);

                        Application.Run (form);

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list