开发者

Multiline TextField in a XUL "Box" Element

开发者 https://www.devze.com 2022-12-26 12:47 出处:网络
I need to put something like a Textarea into a \"box\" element in XUL. It needs to be multiline. It\'s for an explanation frame.

I need to put something like a Textarea into a "box" element in XUL. It needs to be multiline. It's for an explanation frame.

Is that possible? I can't find anything on the MDC offi开发者_如何学Pythoncial site.


You can use a "textbox" element to create both text fields and text areas (multiple lines) in XUL. To create a text area just set the multiline attribute.

From https://developer.mozilla.org/en/XUL_Tutorial/Input_Controls:

<textbox multiline="true"
         value="This is some text that could wrap onto multiple lines."/>


i think it is better using <html:textarea></html:textarea>

it is more like what he want


Check out the description element.

0

精彩评论

暂无评论...
验证码 换一张
取 消