Print Page | Close Window

Bug in CXTPPropertyGridItemDouble

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11487
Printed Date: 02 May 2024 at 7:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug in CXTPPropertyGridItemDouble
Posted By: nobs
Subject: Bug in CXTPPropertyGridItemDouble
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net