How to drag window when windowshape is used?

Edwin Gore edgore at shinra.com
Tue Jul 8 18:16:01 EDT 2003


Chipp's site at http://www.altuit.com/webs/altuit2/RunRev/UsefulScripts.htm has a great script for doing this - it's the first one on the above page.


>In the Transcript dictionary, under "Windowshape",
>it talks about the need to 
>create your own "window moving" handlers, since the
>title-bar disappears when 
>using the windowshape command.
>
>Does anyone have any sample "fake title-bar
>dragging" code they could share 
>that allows the user to move a window via an object
>on a card, instead of the 
>titlebar?
>
>I'm guessing it would be something like:
>
>on idle
>      if the mouse is down in object #1005 then
>	    set the loc of this stack to the loc of
>the mouse
>      end if
>end idle
>



More information about the use-livecode mailing list