How to drag window when windowshape is used?

Jan Schenkel janschenkel at yahoo.com
Tue Jul 8 15:03:01 EDT 2003


--- RGould8 at aol.com wrote:
> 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
> 
> 

Have a look at this sample stack :
http://www.geocities.com/janschenkel/downloads/drawertest.zip
It contains a variation on a script technique for
dragging windows which I found in Chipp Walters'
essential plug-ins for Revolution 2.0

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



More information about the use-livecode mailing list