Adjusting the size of cards in a stack

Peter Haworth pete at lcsql.com
Tue Jul 8 19:55:35 EDT 2014


Thanks Dave, that works great.

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 Tue, Jul 8, 2014 at 4:02 PM, Dave Kilroy <dave at applicationinsight.com>
wrote:

> Pete - you can use the effective rect and compare that with the rect:
>
>    --app window size (including borders and title bar)
>       put the rect of stack "xyz" into tAppRect1
>       put the effective rect of stack "xyz" into tAppRect2
>       put item 1 of tAppRect1 - item 1 of tAppRect2 into tWindowBorder
>       put item 2 of tAppRect1 - item 2 of tAppRect2 into tWindowTitle
>
>
>
>
> Peter Haworth wrote
> > I just remembered that the
> > formattedHeight does not include the height of the title bar at the top
> of
> > the stack so I'm pretty sure that's what is causing the problem.
> >  Unfortunately, I think the title bar is a different height on different
> > platforms
>
>
>
>
>
> -----
> "Some are born coders, some achieve coding, and some have coding thrust
> upon them." - William Shakespeare & Hugh Senior
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Adjusting-the-size-of-cards-in-a-stack-tp4680913p4680943.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