Status & Roadmap
Authors & License
Funding Ultimate++
Search on this site
Search in forums

SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » How to add a currency symbol to an EditDoubleSpin?
icon5.gif  How to add a currency symbol to an EditDoubleSpin? [message #43816] Sat, 25 October 2014 15:13 Go to next message
frozen is currently offline  frozen
Messages: 13
Registered: January 2013
Promising Member

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,

Re: How to add a currency symbol to an EditDoubleSpin? [message #43829 is a reply to message #43816] Wed, 29 October 2014 16:47 Go to previous message
mirek is currently offline  mirek
Messages: 13442
Registered: November 2005
Ultimate Member
Well, it looks like there was a conflicting bug/feature fix, with other users demanding that extra unrecognized characters should result it error value ("12-12" case).

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.

Previous Topic: Dotted spaces (Show spaces, like show tabs)
Next Topic: Lost focus in edit fields
Goto Forum:

Current Time: Sat Oct 23 17:13:43 CEST 2021

Total time taken to generate the page: 0.01419 seconds