https://bugzilla.novell.com/show_bug.cgi?id=371905


           Summary: TabControl UserPaint does not work
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
                CC: [EMAIL PROTECTED]
          Found By: ---


Created an attachment (id=202665)
 --> (https://bugzilla.novell.com/attachment.cgi?id=202665)
TabControl doesn't call OnPaint

If deriving from TabControl, the new class will not have OnPaint called.

Steps to reproduce:
1. Derive a class out of TabControl
2. In the new class, override OnPaint and make paint it yellow
3. Add the new tab control to a form
4. Run

Results:
Tab controls appears without the designated paint job

Expected results:
The derived class should have had OnPaint called.

Observations:
In the Mono Managed.Windows.Forms code, see
System.Windows.Forms.TabControl.OnPaintInternal(). That method sets a value,
pe.Handled = true;  This 'true' prohibits the calling of OnPaint in the calling
method Control.WmPaint()

For a test, I commented out the pe.Handled=true in
TabControl.OnPaintInternal(), and I got the expected results.

I have attached test code.


-- 
Configure bugmail: https://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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to