Can't set a card to the screenrect (sort of)

Scott Rossi scott at tactilemedia.com
Wed Jun 16 17:05:10 EDT 2004


Recently, "Howard Bornstein"  wrote:

> These are the kind of problems that just drive me batty.
> 
> I create a stack via code. Then I set it to the rect of the screenrect.
> 
> I do a bunch of stuff, including adding items to the stack. Then I
> group the items.
> 
> Finally, I set the rect of the group to the rect of the card (which
> should be the screenrect).
> 
> This works fine if I put in a breakpoint. I run the code, hit the
> breakpoint, click Run in the debugger, and Bob's your uncle. I end up
> with a scrollable group the size of the screen.
> 
> However, if I just run the code without any breakpoint, Rev thinks the
> card size is 256 X 256 (the default size when creating a card) and the
> group is set to this size--even after I've set the rect of the stack to
> the screenrect.

Did you try setting the lockLoc of the group to true before setting its
rect?

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com



More information about the use-livecode mailing list