Bug in CXTPPropertyGridItemDouble |
Post Reply |
Author | |
nobs
Groupie Joined: 12 September 2006 Location: Austria Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 18 July 2008 at 7:35am |
Hello
We changed to the new toolkit Pro version (12.0) and found that there is still a bug I reportet over a Year ago!! Bug in CXTPPropertyGridItemDouble Posted: 08 November 2006 at 6:45am I even told you a way to fix it but it seems nobody took me serious Here a second try: Setting the Decimal Symbol via CXTPPropertyGridItemDouble::UseSystemDecimalSymbol does not work The flag is used in the method "CString CXTPPropertyGridItemDouble::DoubleToString(double dValue)" If m_bUseSystemDecimalSymbol isn't set you do following code... CString strFormat(m_strFormat); if (strFormat.IsEmpty()) strFormat = _T("%0.2f"); CString strValue; strValue.Format(m_strFormat, dValue); return strValue; The red line should be replaced with like strValue.Format(strFormat, dValue); ^^^^^^^ you are referencing the wrong variable It would be nice if some add this fix for the next release regards nobs |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |