根据MaxCharLimit中TextInput到它的宽度它的、宽度、根据、TextInput

2023-09-08 11:55:50 作者:叹

我使用Flex 4.5,我想根据限价对TextInput的宽度设定最大字符意味着,如果用户输入更多的字符,然后将TextInput宽度不应该接受这些额外的字符。

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.

推荐答案

不幸的是,我已经在我面前没有弯曲现在。 你应该知道,有多少空间,例如20个字符需要的,这个值设置为您textinput.width。

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.

查看通过widthInChars财产对于Spark的TextInput。也许你可以用豆蔻补偿工作。如果一切正常,你只需要同步此值maxChars属性。 让我知道,如果这项工作。 弗兰克

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