Luca Cenci Posted January 10, 2025 Posted January 10, 2025 Hello, using UniGUI 1.95.0.1592 here. I have a form with a TUniEdit and would like to set the Step property of it, in order to make the increment step 0.5. 2 main keypoints: 1. property TUniEdit.Step is protected, and changing that property by subclassing it, does not work. 2. setting the "step" html attribute on the "input" element from the browser does the job, but I have trouble in finding how to set that html attribute from Delphi code. Thanks for your time. Quote
Sherzod Posted January 11, 2025 Posted January 11, 2025 13 hours ago, Luca Cenci said: I have a form with a TUniEdit and would like to set the Step property of it Hello, Why don't you use UniSpinEdit, or is using UniEdit important for you? Quote
Luca Cenci Posted January 14, 2025 Author Posted January 14, 2025 I'm trying to use TUniSpinEdit as you suggested, but I cannot find a Step property on it. Moreover, seems that its inner FValue is just an integer: Am I missing something? ... well, actually, I need to use a TUnimEdit because it's a mobile project, and there is no TUnimSpinEdit Quote
Sherzod Posted January 14, 2025 Posted January 14, 2025 Hello @Luca Cenci These posts may help you: Quote
Luca Cenci Posted January 27, 2025 Author Posted January 27, 2025 Thanks @Sherzod, I solved adding this function to ClientEvents.ExtEvents.painted event, from the post you mentioned. function painted(sender, eOpts) { var me=sender.inputElement; if (me) { me.dom.setAttribute('step', '0.5'); } } 1 Quote
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.