Page 1 of 1

#PB_String_Numeric

Posted: Mon Jan 19, 2015 2:13 am
by IdeasVacuum
I just discovered that #PB_String_Numeric now accepts doubles, which is really good news. The icing on the cake though would be to have numbers right-justified too.

Edit: Ah, it only worked because the decimal point was not typed in, it was already there in the initial value :cry:

Re: #PB_String_Numeric

Posted: Mon Jan 19, 2015 8:17 pm
by Shield
The problem with fixed implementations like this is that they should follow the current
user locale, i.e. use "." or "," as the decimal separator (or whatever the locale demands).
It shouldn't be too difficult to implement that yourself though, using the appropriate events.
I have never used the new Gadget functionality, but it might even work without API. :)

Other than that, I'd actually like to see some kind of MaskedTextBox (.NET) where you can
specify a template for a valid input string, i.e. 0000-00-00 could be the template for a date. :)