Adjusting the size of cards in a stack

Peter Haworth pete at lcsql.com
Tue Jul 8 12:44:04 EDT 2014


I tried that, using the formattedwidth and formattedHeight of the card as
theCardWIdth and theCardHeight (plus a few extra pixels for aesthetics).

Strangely, that works for one card but the height is incorrect ( less than
it should be) for the other card. Maybe a bug?

To my way of thinking, the way this should work is that stacks should have
a lockLocation property and then I could simply set it to true, then set
the height and width without worrying about the stack moving.

Pete

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>


On Mon, Jul 7, 2014 at 6:03 PM, Trevor DeVore <lists at mangomultimedia.com>
wrote:

> On Monday, July 7, 2014, Peter Haworth <pete at lcsql.com> wrote:
>
> > I have a stack with two cards in it each of which is a different size.
> >  I've been trying to adjust the size of each card in preOpenCard handlers
> > without affecting the card's previous display location.
>
>
> Just adjust the stack rect.
>
> Put the rect of this stack into theRect
> Put item 1 of theRect + theCardWidth into item 3 of theRect
> Put item 2 of theRect + theCardHeight into item 4 of theRect
> Set the rect of this stack to theRect
>
> --
> Trevor DeVore
> _______________________________________________
> 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