Hi List!
The Language reference states:
Canvas.MouseUp Event:
The mouse button was released inside the Canvas region at the location
passed in to x,y.
But the event also occurs when the mouse is released _ouside_ of the
canvas!
To reproduce this:
make a new project and put a canvas and an Editfield on the Window. Make
the EditField multiline.
In the Canvas events add following code
Sub Paint(g As Graphics)
g.ForeColor = &cFFAB60
g.FillRect 0,0,me.Width, me.Height
End Sub
Function MouseDown(X As Integer, Y As Integer) As Boolean
EditField1.AppendText "MouseDown, x=" + str(x) + ", y=" +
str(y)+ EndOfLine
return true
End Function
Sub MouseUp(X As Integer, Y As Integer)
EditField1.AppendText "MouseUp, x=" + str(x) + ", y=" +
str(y)+ EndOfLine
End Sub
Now click the canvas and drag the mouse outside of it. Then release the
mouse key.
I think there should be no MouseUp Event because the mouse is not
released _inside_ of the Canvas area.
Tested on Mac and Win XP.
This looks like a bug for me. Comments please.
Cheers,
Tom
PS. RB 2009r2 on Mac OS X 10.5.6
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|