Auto-size buttons?

Jeanne A. E. DeVoto jeanne at runrev.com
Sat Dec 28 16:20:00 EST 2002


At 9:37 AM -0800 12/28/02, Mark Swindell wrote:
>on 12/27/02 11:27 PM, Ken Ray at kray at sonsothunder.com wrote:
>>> Is there a way to auto-size buttons so that they grow/shrink to fit their
>>> labels with a developer-defined margin?
>>
>> on menuPick pChoice
>> put the formattedWidth of me +15 into tW  -- 15 is my right "margin"
>
>I really think this would be a nice property to have built into the button
>properties palette...

It is (although it's not well-labeled in 1.1.1): the double-arrow buttons
to the right of the Width and Height boxes set the object's width or height
to the formattedWidth or formattedHeight.

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/





More information about the use-livecode mailing list