Moving a window without a dragbar...

Chipp Walters chipp at chipp.com
Tue Dec 4 02:00:01 EST 2001


Ken,

Not sure ?HOW? to use a frontscript. Can you explain? thx

-Chipp

-----Original Message-----
From: use-revolution-admin at lists.runrev.com
[mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Ken Ray
Sent: Tuesday, December 04, 2001 12:15 AM
To: use-revolution at lists.runrev.com
Subject: Re: Moving a window without a dragbar...


Chipp,

Use a frontScript. This way, mouse messages will hit the frontScript first,
and won't go to the buttons (unless you explicitly pass them).

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Chipp Walters" <chipp at chipp.com>
To: <use-revolution at lists.runrev.com>
Sent: Monday, December 03, 2001 10:40 PM
Subject: Moving a window without a dragbar...


> I'm writing a little handler to move a window by clicking on it and
> dragging. I've inserted the following into the stack script:
>
> local startX,startY,dragWd
>
> on mouseDown
>   put true into dragWd
>   put the mouseH into startX
>   put the mouseV into startY
> end mouseDown
>
> on mouseMove newMouseH, newMouseV
>   if dragWd then
>     set the loc of this stack to \
> item 1 of the loc of this stack - startX + newMouseH, \
> item 2 of the loc of this stack - startY + newMouseV
>   end if
> end mouseMove
>
> on mouseUp
>   put false into dragWd
> end mouseUp
>
> on mouseRelease
>   put false into dragWd
> end mouseRelease
>
> on mouseLeave
>   put false into dragWd
> end mouseLeave
>
> This way you can build a project with no window borders or titlebar, and
> have it still be dragged around the screen. How can I get buttons to not
> react to the handlers above without explicitly coding "catch" handlers?
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list