Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
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
Hello,

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
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: 13975
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.

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


Current Time: Fri Apr 26 05:10:02 CEST 2024

Total time taken to generate the page: 0.05461 seconds