Max,thank you very much.

The code below works in swf8/9/10/dhtml.
width and resize are needed for swf9/10/dhtml.

<?xml version="1.0" encoding="UTF-8"?>
<canvas proxied="false" bgcolor="0xeeeeee">
 <button width="100">
   <handler name="oninit"><![CDATA[
     this._title.setAttribute('width', this.width-20); // not needed for swf8
     this._title.setAttribute('resize', false); // not needed for swf8
     this._title.setAttribute('multiline', true);
     this._title.setAttribute('text', 'multiline test<br/>multiline
test<br/>multiline test');
   ]]></handler>
 </button>
</canvas>

The URL of sample app:
http://www.openlaszlo-ason.com/doku.php/button#%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%AE%E6%96%87%E5%AD%97%E3%82%92%E8%A4%87%E6%95%B0%E8%A1%8C%E3%81%AB


Sorry, I dont know how to use jira.

regards,
ason

2010/7/5 Max Carlson <[email protected]>:
> There isn't an API to do this now, please file an improvement in
> http://jira.openlaszlo.org/.
>
> In the mean time take a look at the button source at
> lps/components/lz/button.lzx in your local LPS install or
> http://svn.openlaszlo.org/openlaszlo/trunk/lps/components/lz/button.lzx
>
> The text instance has the name _title, so you could call
> mybutton._title.setAttribute('multiline', true) for now.  Let me know how it
> goes!
>
> Regards,
> Max Carlson
> OpenLaszlo.org
>
> On 7/4/10 10:44 AM, ason wrote:
>>
>> Hello,
>>
>> Do you know how to set the multiline text on the button?
>>
>> best regards,
>> minamotonoason
>

Reply via email to