mdswindell at charter.net
Sat Dec 28 12:44:00 EST 2002
This list never ceases to amaze me.
I really think this would be a nice property to have built into the button
on 12/27/02 11:27 PM, Ken Ray at kray at sonsothunder.com wrote:
> I'm doing this in OS X right now with option buttons. Here's my code:
> on menuPick pChoice
> put the formattedWidth of me +15 into tW -- 15 is my right "margin"
> put the rect of me into tRect
> put (item 1 of tRect) + tW into item 3 of tRect
> set the rect of me to tRect
> end menuPick
> This resizes buttons to the right (i.e. the menu is left-aligned). To make
> it right-aligned (and resize to the left), simply change the third-to-last
> line of the code to:
> put (item 3 of tRect) - tW into item 1 of tRect
> Have fun!
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
> ----- Original Message -----
> From: "Mark Swindell" <mdswindell at charter.net>
> To: <use-revolution at lists.runrev.com>
> Sent: Saturday, December 28, 2002 12:11 AM
> Subject: Auto-size buttons?
>> Is there a way to auto-size buttons so that they grow/shrink to fit their
>> labels with a developer-defined margin?
More information about the Use-livecode