ResizeStack message
Terence Heaford
t.heaford at btinternet.com
Sun May 25 14:06:57 EDT 2014
Thanks for your assistance.
Clearly, using resizeStack is not as straightforward as first thought.
I have just tried this handler in the card script:
on resizeStack tWidth,tHeight
put tWidth & "," & tHeight
end resizeStack
It returned 1590,972
In the stack property inspector the stack width is 1590 (as above), the stack height is 950.
Why is there a difference?
Thanks
Terry
On 25 May 2014, at 14:44, BNig <bernd.niggemann at uni-wh.de> wrote:
> Hi Terence,
>
> try this, there may be other (better) ways to do this, I do it in variations
> of this code.
> put this code into the card script (or wherever) resize your stack and watch
> a field "fRes" you put
> on the current card for testing purposes
>
> ----------------------
> on resizeStack
>
> -- do your normal resizeStack stuff here
>
> -- take "doAfterResize" out of the pending messages
> -- only the last "doAfterResize" message will not get cancelled
> repeat for each line aLIne in the pendingMessages
> if aLine contains "doAfterResize" then cancel item 1 of aLine
> end repeat
> send doAfterResize to me in 10 milliseconds
> end resizeStack
>
> on doAfterResize
> put "resizing done" && the milliseconds into field "fRes"
> end doAfterResize
> ---------------------------
>
> Kind regards
> Bernd
>
>
>
> --
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/ResizeStack-message-tp4679967p4679969.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list