U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
How to add a currency symbol to an EditDoubleSpin?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=43816&th=9093#msg_43816
is there any reliable way to add an currency symbol inside an EditDoubleSpin?
I used
.Pattern ( "%2,!n€" )
until now and it worked as desired (showing the currency symbol while using the double-value in calculations and still being able to use the spins).
But now it fails, stating the number is not valid. As soon as I remove the currency symbol it works again.
I am on a new setup with Windows 7 and using U++ 7821.
I tried to use Convert but also failed..
Thanks for any advice!
Kind regards,
frozen]]>frozen2014-10-25T13:13:59-00:00Re: How to add a currency symbol to an EditDoubleSpin?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=43829&th=9093#msg_43829
Anyway, I have fixed ConvertDouble so that if pattern is used, input is filtered to remove any characters that would be breaking the rule. Means your code should work again.