[Mono-bugs] [Bug 383530] New: Control: After a MouseDown event a MouseMove with different coords is fired

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 24 17:38:01 EDT 2008


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


           Summary: Control: After a MouseDown event a MouseMove with
                    different coords is fired
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: openSUSE 10.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: calberto.cortez at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


I found this problem with controls using InternalBorderStyle=BorderStyle3D
(probably any control using non-default border has the same problem). Example
of such controls: ListBox, TreeView, ListView.

Clicking with the left mouse button generates first a MouseDown, and
immediately a MouseMove event with _different_ coords than MouseDown ones. This
makes controls using SystemInformation.DragSize be confused and firing random
dnd operations.

Clicking with left button should generate both MouseDown and MouseMove but with
_same_ coords.

*Observe that a slighly different result appears when right-clicking instead of
left-clicking.

Reproduce:

1. Compile the attached sample.
2. Left-click on the form, and observe the console output - MouseDown has
different x,y coords than MouseMove, while .net are same.


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