Print Page | Close Window

CXTPPropertyGridItemColor edit notifications

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=8114
Printed Date: 22 November 2024 at 11:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGridItemColor edit notifications
Posted By: Silvery
Subject: CXTPPropertyGridItemColor edit notifications
Date Posted: 21 September 2007 at 4:32am
When CXTPPropertyGridItemColor is used with xtpGridItemColorPopup editor style; XTP_PGN_REQUESTEDIT notification is sent before the popup is shown but neither XTP_PGN_CANCELEDIT nor XTP_PGN_AFTEREDIT are sent after the popup is closed.



Replies:
Posted By: Silvery
Date Posted: 21 September 2007 at 4:35am
The problem is observed in version 11.2


Posted By: Oleg
Date Posted: 21 September 2007 at 9:46am
Hi,
 
Thanks, good point.
 
Please replace OnWndMsg method in XTPPropertyGridItemColor.cpp
 
BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
   {
    if (message == CPN_XT_SELENDOK)
    {
     CString strValue = m_pItem->RGBToString((COLORREF)wParam);
     if (m_pItem->OnAfterEdit(strValue))
     {
      m_pItem->OnValueChanged(strValue);
     }
     *pResult = 0;
     return TRUE;
    }
    if (message == CPN_XT_SELENDCANCEL)
    {
     m_pItem->OnCancelEdit();
    }

    return CXTColorPopup::OnWndMsg(message, wParam, lParam, pResult);\
   }


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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