Multi-line Button Names
Klaus Major
klaus at major-k.de
Fri Nov 19 03:22:58 EST 2004
Konichi-wa Cragg-san :-)
> On 19 Nov 2004, at 04:57, Sivakatirswami wrote:
>
>> I recall there used to be a way to set button names to multi-line
>> button names, but it escapes me now... e.g. let's say we want the btn
>> width quite narrow, but button names don't wrap..
>>
>> Upload
>> to
>> Siddhi
>>
>> I tried naming the button "upload" then in the msg box ran:
>>
>> set the name of btn "upload" to ("Upload" &cr& "to" &cr& "Siddhi")
>>
>> but I got underscores in the name
>>
>> set the label of btn "upload " to ("Upload" &cr& "to" &cr& "Siddhi")
>> also doesn't work... it discards all but the top line...
>>
>
> Use "\n" to separate lines. Like this:
>
> set the label of btn "upload " to ("Upload\nto\nSiddhi")
This does work in the label field in the inspector, but when used in a
script
you'll end up with "Upload\nto\nSiddhi" in the label...
> Dave
Best from germanski
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list