Recently, betypaul wrote:

> I need a script so that a palette stack without a title bar  can be
> dragged around with a mouseDown within the stack?.

Many folks here have a variation of this.  Here's one, to be placed in an
object that will serve as your titlebar or similar:

(watch line wrap)

local allowDrag
on mouseDown
  put mouseLoc() into allowDrag
end mouseDown

on mouseMove X,Y
  if allowDrag = "" then exit mouseMove
  set topLeft of this stack to globalLoc(X - item 1 of allowDrag & "," & Y -
item 2 of allowDrag)
end mouseMove

on mouseUp
  put "" into allowDrag
end mouseUp

on mouseRelease
  mouseUp
end mouseRelease


Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

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

Reply via email to