I've done this in the past:

Instead of using Rev's drap/drop features, you could fake it with a button that appears at the mouseLoc when the drag begins.
- its label is set to the selectedText of the index field
- its rect is same as that of the selected line in the field
- it looks like you're dragging selectedText
- if dropped in an invalid target zone, it snaps back to the original location and disappears - if dropped in a valid zone, it disappears and your script puts the text where it belongs.

This is a little bit of work, but maybe it would give you what you want.

HTH -
Phil Davis


J. Landman Gay wrote:
I have a list field that operates like an index; clicking on a line causes the stack to display content based on the text of the line.

I also need the field to support drag and drop, so that users can create their own lists by dragging lines from the index into a different field in a substack.

I tried setting the dragData on a mousedown in the index field, but even if I pass mouseDown, the index behaviors no longer function. The field does not recognize "mouseup" or "selectionchanged" and nothing happens. Actually, when I try dragging a line, the selection changes to whatever line the pointer is over. Does anyone have a trick for making a list field behave in two different ways -- that is, normal line selection as well as supporting dragging lines to another field?


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to