There is currently no way to specify a max line count. However, you can specify a maximum preferred height. If you multiple the font height by 5 and use this as the value for the maximumPreferredHeight attribute, it will produce the same result as setting the max line count to 5.
Greg On Jun 29, 2010, at 12:41 AM, [email protected] wrote: > > Dear All, > > I would like to ask how to set setPreferredHeightLimits for text area in > the wtkx file? > For example,I would like limit the max line is 5. > Thanks a lot. > <TextArea wtkx:id="TextArea1" preferredWidth="120" preferredHeight="120"/> > > Best regards, > Ken Jiang > > ******************************************* > Murata Electronics Trading (Shenzhen) Co.,Ltd > Tel:86-755-82847251 > E-mail:[email protected] > ******************************************* >
