Int3g3r Posted October 1, 2020 Share Posted October 1, 2020 Hello, I'm struggling to set the maxLength on a TUnimEdit. I would like to set the maxLength to 3 characters. 1) I set the maxLength Property to 3. 2) I used the ClientEvents -> UniEvents with follow code: function beforeInit(sender, config) { config.cls='edtScan'; config.maxLength=3; } In both cases I'm able to write more characters than 3 into the Input field. Edit: InputType Property is set to "number" Edit: Complete_Professional_1.90.0.1535 Regards, Int3g3r Edit workaround : Set the maxLength Property to 3 and the InputType to "tel". Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 1, 2020 Share Posted October 1, 2020 1 hour ago, Int3g3r said: I'm struggling to set the maxLength on a TUnimEdit. I would like to set the maxLength to 3 characters. Hello, It is enough to set the maxLength property. Which edition and build of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
Int3g3r Posted October 1, 2020 Author Share Posted October 1, 2020 Is it possible to readout the UniGui Build version in the Delphi IDE ? When yes how ? I installed follow Setup: Complete_Professional_1.90.0.1535 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 1, 2020 Share Posted October 1, 2020 Are you using trial edition? If not: Quote Link to comment Share on other sites More sharing options...
Int3g3r Posted October 1, 2020 Author Share Posted October 1, 2020 1 hour ago, Sherzod said: Are you using trial edition? No, I have a subscription. I'm using the full version. PS: I have set the InputType Property to "number". Regards, Int3g3r Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 1, 2020 Share Posted October 1, 2020 Thank you for the update. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 1, 2020 Share Posted October 1, 2020 41 minutes ago, Int3g3r said: PS: I have set the InputType Property to "number". I will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 1, 2020 Share Posted October 1, 2020 57 minutes ago, Int3g3r said: PS: I have set the InputType Property to "number". Can you try to use "tel" instead? 1 Quote Link to comment Share on other sites More sharing options...
Int3g3r Posted October 2, 2020 Author Share Posted October 2, 2020 13 hours ago, Sherzod said: an you try to use "tel" instead? I set the maxLength Property to 3 and the InputType to "tel". This works. Thank you. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.