Hi Jan.
Thanks. Perfect. I can't imagine what all goes on between "on preOpenStack"
and "end PreOpenStack"
But your suggestion to insert the reset at the end of that handler work just
fine.
Here is a button script to test the strategy:
CAUTION; This meddles with answer dialog script. But restores it at the end.
on mouseUp --Change the location of the answer dialog box
answer "This is the default position of the answer box."
put the script of card 1 of stack "answer dialog" into tScript
put lineoffset("end preOpenStack", tScript) into tLineNo
--Define the new script line.
put "Set the loc of this stack to "& "200,400" into tNewScriptLine
--Alter the script
put tNewScriptLine & cr & "end preOpenStack" into line tLineNo of tScript
set the script of card 1 of stack "answer dialog" to tScript
--Test of new loc.
answer "Have I moved?"
--Now restore the deafulat script if you like
put "end preOpenStack" into line tLineNo of tScript
set the script of card 1 of stack "answer dialog" to tScript
-- Or you might just change the new script line to "set the loc of this stack
to the screenLoc"
end mouseUp
Jim Hurley
On Nov 22, 2012, at 10:00 AM, [email protected] wrote:
> Message: 2
> Date: Wed, 21 Nov 2012 21:58:30 -0800 (PST)
> From: Jan Schenkel <[email protected]>
> To: How to use LiveCode <[email protected]>
> Subject: Re: "Badge" in answer modal?
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hi Jim,
>
> Try and add your logic to the very end of the 'preOpenStack' handler.
> That handler fiddles with the width and top of the stack so many times that
> you might as well let it do its thing and then move it yourself at the very
> end.
> I tried putting the following line in and it seemed to work on my Mac:
> ##
> set the left of this stack to 100
> ##
>
> Jan Schenkel.
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode