[Mono-bugs] [Bug 371905] New: TabControl UserPaint does not work
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Mar 17 18:42:47 EDT 2008
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: mono-bugs at lists.ximian.com
ReportedBy: derekd at omni-ts.com
QAContact: mono-bugs at lists.ximian.com
CC: stephane at omni-ts.com
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.
More information about the mono-bugs
mailing list