Re: drag 'n' drop reordering

2006-02-18 Thread André . Bisseret
Hi Josh, Drawn from an HyperCard stack I developed a long time ago (but that I am still using). You could try this : - on mouseWithin moveOption pass mouseWithin end mouseWithin on MoveOption if card button is not in the target then exit MoveOption -- In

Re: drag 'n' drop reordering

2006-02-18 Thread Eric Chatonet
Bonjour André, Mousewithin (like the old idle HC message) is a message sent automatically by the engine every 200 milliseconds. You might prefer to use messages less *intrusive* like mouseMove that is sent repeatedly only if the mouse is moved. As for moving objects, have a look at the grab

Re: drag 'n' drop reordering

2006-02-18 Thread André . Bisseret
Bonjour Éric, Excellent :-)) I haven't noticed yet this grab command ! I just tried it ; very simple ; with mouseMove as well as with mouseDown. I kept if shiftKey is down . And, in order to avoid the actions launched by mouseUp, I put if the shiftKey is down then exit mouseUp, in the

drag 'n' drop reordering

2006-02-17 Thread Josh Mellicker
I have a set of buttons that I'd like the user to be able to reorder by dragging and dropping a la http://demo.script.aculo.us/ajax/sortable_elements http://tool-man.org/examples/sorting.html I can think of several ways to approach this... but I think my noob brain is overcomplicating

Re: drag 'n' drop reordering

2006-02-17 Thread Scott Rossi
Recently, Josh Mellicker wrote: I have a set of buttons that I'd like the user to be able to reorder by dragging and dropping Here's one way (execute in your message box): go url http://www.tactilemedia.com/download/getinline.rev; Regards, Scott Rossi Creative Director Tactile Media,

Re: drag 'n' drop reordering

2006-02-17 Thread Scott Rossi
Recently, I wrote: I have a set of buttons that I'd like the user to be able to reorder by dragging and dropping Here's one way (execute in your message box): go url http://www.tactilemedia.com/download/getinline.rev; Oops -- just re-read your message. The above is for lines of text,

Re: drag 'n' drop reordering

2006-02-17 Thread Josh Mellicker
Thanks! That's just what I was thinking of... but man, that's even more code than I was coming up with :o On Feb 17, 2006, at 6:47 PM, Scott Rossi wrote: Recently, Josh Mellicker wrote: I have a set of buttons that I'd like the user to be able to reorder by dragging and dropping

Re: drag 'n' drop reordering

2006-02-17 Thread Scott Rossi
Recently, Josh Mellicker wrote: go url http://www.tactilemedia.com/download/getinline.rev; That's just what I was thinking of... but man, that's even more code than I was coming up with :o That's because the code is dealing with formatted text within a single field, not discrete button

Re: drag 'n' drop reordering

2006-02-17 Thread Josh Mellicker
True dat. Thanks so much, that is awesome! On Feb 17, 2006, at 8:42 PM, Scott Rossi wrote: Recently, Josh Mellicker wrote: go url http://www.tactilemedia.com/download/getinline.rev; That's just what I was thinking of... but man, that's even more code than I was coming up with :o