CodenameOne format number - codenameone

I have a textfield in which user enters the amount. Is there a way to format the text in a textfield to display it as a decimal number etc. "123.456,10". I would like to format it as the user types. I tried to play with listener on that field but no luck.. Thanks.

yes.
you have to choose decimal constraint in designer which is also shown in given image

Related

Restrict the number of digits in NumericUpDown Control

I am using a NumericUpDown in WinForms and I'm wondering if it is possible to restrict the number of digits. So my max value is set to 9999.99 but you can enter values larger than this. you shouldn't be able to enter more than 4 digits to the left of the decimal and you shouldn't be able to enter more than 2 digits to the right of the decimal. There is another component called DoubleTextBox which uses the NumberFormatInfo.NumberDecimalDigits property to achieve this, but i was wondering if there is something similar for NumericUpDown. I've tried using the KeyDown event to stop the keyboard press but it doesn't work as perfectly. Any help would be great !

Looking for native number picker for React.js

I am looking for a component/library which allows a good experience on mobile for inputting numbers (this will be for entering scores, preferably decimal numbers would be allowed too).
I would like something that looks like the one from React Native here https://dev.to/skptricks/react-native-textinput-that-only-accepts-numeric-characters-5698
I have looked at Material UI TextField (type = Number) but it's not very good on mobile as the provided keyboard allows you to enter text (which disappears when you blur). I want the user to see a keyboard which only provides numbers (like when you are entering a phone number on your mobile).
Any recommendations greatly appreciated.

Changing color in echosign

I want to change the color of date text tag {{_es_:signer:date}}. Is there a way to do that? I have been on EchoSign for 4 days. I am now looking for the color changing in it.
This is what they have in their Text tagging documentation,
"The form field formatting (font size, type, color, etc.) is determined by the format of the first ‘{‘. To ensure correct processing of Text Tags by EchoSign tag definitions should be specified in commonly occurring fonts within the document (Helvetica, Times New Roman, Arial, Verdana or Courier). Text Tag definitions are case sensitive and must be specified in lowercase text."
Or if you want to set color of the field dynamically, I guess you'll have to google about using Acrobat Javascript.
this should work
{{es:signer:date:font(color=green}}
probably too late, but might help someone

richtextbox printing with fixed header and footer

Hell Everybody,
I need to provide a facility like letters printing.for letter formats i used a richtextbox to create different formats(Templates).now i need to print this formats with header.Heder information will change always and header height should be fixed for the page.For header informtion displaying also i took one Richtextbox.now i want to merge these two richtext box information before printing.but i failed to maintained the fixed header,if i merge the textboxs information.
Suggest me,what way is better to handle this.

how to clip text of the RichTexBox

hi I have RichTextBox bind to description(html format) from database and it is read only. I just need to show First line from description. How to achieve this
As Silverlight has no way of measuring the width of fonts, you'll need to take an arbitrary amount of the text, and simply Substring() it.

Resources