Hi,
This is using REALbasic 5.5.3 on a Mac OS 10.3.5.
The online Language Reference says something like:
.../... "Returning True in the MouseDown event causes the MouseDrag and MouseUp
events to fire _AND_ the default ListBox click processing not to fire."
I was playing with the MouseCursor and wanted to set the ListBox cursor to
change when the Mouse is Down, another when the Mouse Drag, etc.
But, once I put "Return True" in the ListBox.MouseDown, the troubles cames:
a. The cursor didn't change (change was set in MouseDrag)
b. No user feedback: no Row selected, (nothing is changed on screen)
c. Even when I clicked in the ListBox own ScrollBar, nothing happens.
Nota: I put "Me.AddRow "MouseDrag at " + Str(x) + "," + Str(y)" in MouseDrag and
a similar in MouseUp ("Me.AddRow "MouseUp at " + Str(x) + "," + Str(y)") and
since the ListBox Rows were created as fast as the speed of light (sic!), I
wanted to click in the ScrollBar, then I tried to use the arrow keys to scroll
to the botton of the ListBox to see what happens without success.
Now the questions:
Why this behavior ?
What is the usage of that behavior ?
Now the good part:
------------------
I checked the EnableDrag and EnableDragReorder CheckBox for the test ListBox,
added the right MouseCursor in the DrawRow and DragReorderRow, etc. and get the
result I wanted.
[see my next mail for a Mac OS X answer]
But the question is still there !
<gone to read the Language Reference>
<back>:
It seems that my original idea to use MouseDown, MouseDrag and MouseUp was not
the good one. The second idea that came to light when I was writing this message
was probably the right one.
However, I am still curious about the usage of the Return True in MouseDown :(
<repeat>:
Now the questions:
Why this behavior ?
What is the usage of that behavior ?
Emile
PS: maybe it is because I use Return True in Canvas MouseDown and was expecting
some similar behavior ? Who knows. I'm waiting about answers to clear this if
possible.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|