Jump to content

unimspinner - only integers


PS1

Recommended Posts

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

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

×
×
  • Create New...