MaxCharLimit on the TextInput according to it's width

旧巷老猫 提交于 2019-12-12 07:04: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 those extra characters.


回答1:


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



来源:https://stackoverflow.com/questions/7309255/maxcharlimit-on-the-textinput-according-to-its-width

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!