On May 1, 2006, at 1:00 PM, realbasic-nug-
[EMAIL PROTECTED] wrote:
I implemented some drag&drop between 2 listboxes and everything works
fine. I would like to know if it's possible to change the default
rectangle that represent the current drag selection with some nicer
image (for ex an image that represents the number of dragged items).
I believe it's possible, but it requires platform-specific
declares. If you're on a Mac, I think declares have been posted to
do this -- unfortunately I don't have any specifics for you, but
since I didn't see anyone else reply, I hope these words of
encouragement are better than nothing. Try searching the archives
if you haven't already; this has been discussed before (look for
things like "drag image" or "drag and drop").
I would be interested in the details for this. I've done something
similar for the Mac by using a canvas control and just moving it
around at the mouse cursor coordinates. It was a real pain though,
because (at least at the time that I did this), all of the code
needed to move the canvas around (in a timer) did not execute while
the drag was being done. I had to resort to abandoning the drag
manager and making my own! It was a real hassle, but it worked in
the end.
Windows was a different story... By using the canvas approach, I was
never able to get correct "compositing" to happen when the user
dragged the mouse over top of other controls. It became a mess! If
there are Windows declares for this sort of thing, I'd sure like to
know about them.
Here's some feature requests for drag images:
http://www.realsoftware.com/feedback/viewreport.php?reportid=etzlbjwe
http://www.realsoftware.com/feedback/viewreport.php?reportid=bklbrrlf
Sign on and lets make it happen!
Ron Benditt
Alien Apparatus Company, Inc.
http://www.alienapparatus.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>