开发者

MaxCharLimit on the TextInput according to it's width

开发者 https://www.devze.com 2023-04-03 06:19 出处:网络
I am using Flex 4.5 and I want to set the maximum characters limit according to the textinput width 开发者_运维问答means if user enter more character then the textinput width it should not accept thos

I am using Flex 4.5 and I want to set the maximum characters limit according to the textinput width 开发者_运维问答means if user enter more character then the textinput width it should not accept those extra characters.


unfortunately, i have no flex in front of me right now. You should know, how many space e.g. 20 characters needed and set this value to your textinput.width.

Check out the widthInChars-property for the spark Textinput. Maybe you can work with a litte offset. When it works, you just have to synchronize this value with maxChars. Let me know, if that work. Frank

0

精彩评论

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