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
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
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
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
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,
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,
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
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
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