Fields blew North
Ken Norris
pixelbird at interisland.net
Tue Feb 17 14:29:29 EST 2004
Hi Thomas,
> Message: 7
> Date: Tue, 17 Feb 2004 07:38:34 -0500
> From: Thomas McGrath III <3mcgrath at adelphia.net>
> Subject: Re: Fields blew North
>
> Ken,
>
> Did you sneeze?
-----------
Heh, heh...
Actually, that's probably a valid Q where I am this time of year (lots of
flu bug going around). I can see someone sneezing and accidentally clicking
;-)
...but no. I still have no clue why it happened, and I don't want to be
chasing flyaway objects. There were no scripts in any fields, nor any that
referred to them, i.e., it's just a layout shell.
The only currently working scripts are these:
1) In a dropdown menu button of the control palette:
on mouseUp
get selectedText(me)
open stack it
go stack it
end mouseUp
2) In the Stack script of the control palette:
on moveStack
global gDockCon
get the loc of stack "Helping Hands Con"
add (width of stack "Helping Hands Con"/2) to item 1 of it
put the rect of stack topStack() into topSRect
subtract 323 from item 3 of topSRect
if it is within topSRect then
get the topleft of stack topStack()
subtract 176 from item 1 of it
add 16 to item 2 of it
set the topleft of stack "Helping Hands Con" to it
put "docked" into gDockCon
set the hidePalettes to true
else
put empty into gDockCon
set the hidePalettes to false
end if
--pass moveStack
end moveStack
3) In the Stack Script of each of the other two windows:
on moveStack
global gDockCon
if gDockCon is empty then
exit moveStack
else
get topleft of this stack
subtract 176 from item 1 of it
add 16 to item 2 of it
set topleft of stack "Helping Hands Con" to it
end if
pass moveStack
end moveStack
...That's all there is at the moment.
Thanks for looking,
Ken N.
More information about the use-livecode
mailing list