Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Bug in CXTPPropertyGridItemDouble
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug in CXTPPropertyGridItemDouble

 Post Reply Post Reply
Author
Message
nobs View Drop Down
Groupie
Groupie
Avatar

Joined: 12 September 2006
Location: Austria
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote nobs Quote  Post ReplyReply Direct Link To This Post Topic: Bug in CXTPPropertyGridItemDouble
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.