[Mono-bugs] [Bug 581361] New: Cannot the RichTextBox.SelectionCharOffset property

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 19 13:31:53 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=581361

http://bugzilla.novell.com/show_bug.cgi?id=581361#c0


           Summary: Cannot the RichTextBox.SelectionCharOffset property
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: i586
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: x.tan at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=343554)
 --> (http://bugzilla.novell.com/attachment.cgi?id=343554)
Zipped solution file showing the reported bug

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8)
Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729)

On Mono 2.6.1, it is not possible to set the read/write
RichTextBox.SelectionCharOffset property to a non-zero value. This property is
used to build features like superscripts and subscripts into RichTextBox.

Refer to the attached solution and steps to reproduce this bug.

Reproducible: Always

Steps to Reproduce:
1. Unzip the attached solution file. Open RTFTextBoxTest.sln with Monodevelop
v2.2, compile and debug it on Mono 2.6.1.
2. When Form1 pops up, Enter a character such as "A" into the built-int
RichTextBox and the click the "Superscipt" toolstrip button - which is suppose
to set the RichTextBox.SelectionCharOffset property to 3 so that the base line
for subsequent input is raised.
3. Continue to type another character such as "B" into the RichTextBox.
Actual Results:  
After step 2, a warning message box will pop up showing that the value of
RichTextBox.SelectionCharOffset is still zero. The character typed into the
RichTextBox is shown at the same base line as the first character typed in.


Expected Results:  
The warning message box should not appear and the second character should be
shown as a superscript (displayed at a raised base line).

Repeat step 1 - 3 on Window with .NET 2.0, one shall see the expected results.

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


More information about the mono-bugs mailing list