如何在Actionscript 3的textarea上添加垂直滚动条? [英] How to add vertical scroll bars on textarea in Actionscript 3?
问题描述
我的textarea代码是:
$ $ p $
<< ; s:TextArea id =txtAreawidth ={this.width}height =3borderVisible =falsefocusAlpha =0.01
selectionHighlighting =alwaysstyleName =TextBox
needsSoftKeyboard =truefocusRect =falsedirection ={textBoxDirction}buttonMode =trueuseHandCursor =truemouseChildren =true/>
我也尝试使用 所以如果有人有一个想法如何在textarea中添加垂直滚动条,请帮我解决这个问题。 而不是 I wants to add vertical scroll bar in textarea spark component, i.e I want to show maximum 5 lines in textarea if text line will more than 5 then vertical scroll bar will automatically add and if i will reduce the text line then vertical scroll bar will automatically disappear. My textarea code is : I also tried to use So if anybody have an idea how to add vertical scroll bar in textarea please help me to solve this problem. Use instead of
这篇关于如何在Actionscript 3的textarea上添加垂直滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! verticalScrollPolicy =on和off / code>,但它也不能正常工作。
heightInLines =5
height =3
<s:TextArea id="txtArea" width="{this.width}" height="3" borderVisible="false" focusAlpha="0.01"
selectionHighlighting="always" styleName="TextBox"
needsSoftKeyboard="true" focusRect="false" direction="{textBoxDirction}" buttonMode="true" useHandCursor="true" mouseChildren="true"/>
verticalScrollPolicy = "on" and "off"
but it is also not working.heightInLines="5"
height="3"