stack position and flicker

Ken Ray kray at sonsothunder.com
Sun Oct 2 16:17:22 EDT 2005


On 10/2/05 1:39 PM, "rev at armbase.com" <rev at armbase.com> wrote:

>   set the height of stack Armbase to 550
> 
> --now at this bit the stack is resized
> 
>   set the top of stack Armbase to stacktop
> 
> --at this point the stack top is reset so it doesn't go off the top of the
> screen
> --however, you can see this resizing and it looks like a flicker.

Bob,

It's better if you just change the rect of the stack instead of changing the
height (which works from the vertical center of an object) and then setting
its top. Something like this (also it's good practice to quote the names of
objects - keeps you out of trouble):

on mouseUp
  put the rect of stack "Armbase" into tRect
  put (item 2 of tRect) + 550 into item 4 of tRect
  set the rect of stack "Armbase" to tRect
  hide button Expand
  show button Collapse
end mouseUp

HTH,

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




More information about the use-livecode mailing list