Print Page | Close Window

Issue with editing CXTPReportColumn text

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=24275
Printed Date: 14 May 2024 at 2:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Issue with editing CXTPReportColumn text
Posted By: vara2604
Subject: Issue with editing CXTPReportColumn text
Date Posted: 17 March 2022 at 4:59am
We have recently integrated our codebase with Xtreme ToolkitPro v20.2.0 version and found the breakage issue with editing text in CXTPReportColumn.

Issue can be easily reproducible with the ReportControl samples shipped with "Xtreme ToolkitPro v20.2.0" installation.

  1. Build below sample using 'Unicode Debug' or 'Unicode Release' configurations and launch the sample. 

    C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v20.2.0\Samples\ReportControl\ReportAddRecordEx\ReportAddRecordEx_vc140.vcxproj


  2. Type some text in edit controls and try to edit the text now. Text disappears and shows the blank value. 
Note that this issue is not reproducible with the older version C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v18.4.0.

We use CXTPReportColumn control multiple places and issue is seen in this all places. Could you please fix this ASAP?



Replies:
Posted By: Fredrik
Date Posted: 20 March 2022 at 11:23am
I reported this issue earlier and I believe it is already fixed for the next release. The workaround I have at the moment is to loop over all columns and call SetMask to initialize members that weren't initialized.


   for (int iColumn = 0; iColumn < GetColumns()->GetCount(); ++iColumn)
   {
      GetColumns()->Find(iColumn)->SetMask(L"", L"", '\0');
   }


Or add the hotfix in the XTP code:


void CXTPReportColumn::_initData(int nItemIndex, LPCTSTR strDisplayName, LPCTSTR strInternalName,
int nWidth, BOOL bAutoSize, int nIconID, BOOL bSortable,
BOOL bVisible)
{
...
m_chPrompt = _T('\0');
m_bUseMask = FALSE;
...



-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0


Posted By: kgi_Jony
Date Posted: 31 May 2022 at 10:15pm
hi

I met this problem too on the Xtreme ToolkitPro v20.0.0.

But I can't found the member function: SetMask() in class CXTPReportColumn.
Could you have more detail or sample code for me?

Thank you



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