PS1 Posted October 23, 2023 Share Posted October 23, 2023 Hi. How can i make unimspinner to only accept integers ? I don't want user to write float/double values. I see there is a property ,,decimals" but it seems that it doesn't work. Another solution would be to block writing in the edit part of unimspinner so user can only tap on ,,+" and ,,-" which adds only integers. I'm using: uniGUI Complete -Professional Edition Build 1.90.0.1568 Link to comment Share on other sites More sharing options...
Sherzod Posted October 23, 2023 Share Posted October 23, 2023 Hello, 2 hours ago, PS1 said: Another solution would be to block writing in the edit You can use editable js config. 1 Link to comment Share on other sites More sharing options...
PS1 Posted October 23, 2023 Author Share Posted October 23, 2023 It works, Thanks. 1 Link to comment Share on other sites More sharing options...
Sherzod Posted October 23, 2023 Share Posted October 23, 2023 2 hours ago, PS1 said: Another solution would be to block writing in the edit part of unimspinner so user can only tap on ,,+" and ,,-" which adds only integers. procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UnimSpinner1.JSInterface.JSConfig('editable', [False]); end; Link to comment Share on other sites More sharing options...
Recommended Posts