Print Page | Close Window

SOLVED: Virtual Report edit Item on Char bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15610
Printed Date: 23 November 2024 at 6:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: Virtual Report edit Item on Char bug
Posted By: aceproof
Subject: SOLVED: Virtual Report edit Item on Char bug
Date Posted: 13 November 2009 at 3:21am
I use Report Control int virtual mode, FocusSubItems is TRUE.

Before:



I press the "TAB" key and I expect that in the focused Row will be edited next Item. But it happen in the first invisible Row:

]

Quote
void CXTPReportNavigator::BeginEdit()
{
     if (!m_pReportControl)
          return;

     CXTPReportRow* pFocusedRow = m_pReportControl->GetFocusedRow(); // pFocusedRow->m_nIndex == 0
     if (!pFocusedRow)
          return;

     if (!m_pReportControl->IsIconView())
     {
          m_pReportControl->AdjustScrollBars(); // pFocusedRow->m_nIndex == 13
          m_pReportControl->RedrawControl();
          m_pReportControl->UpdateWindow(); // pFocusedRow->m_nIndex == 7

          if (m_pReportControl->m_pFocusedColumn &&
               pFocusedRow && pFocusedRow->GetRecord())
          {
               XTP_REPORTRECORDITEM_ARGS itemArgs(m_pReportControl, pFocusedRow, m_pReportControl->m_pFocusedColumn);
...


I use ToolKitPro 13.2.1.



Replies:
Posted By: mdoubson
Date Posted: 15 November 2009 at 7:30pm
Get recent update https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar - https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar  and retry your case please

-------------
Mark Doubson, Ph.D.


Posted By: aceproof
Date Posted: 18 November 2009 at 2:30am
Thanks, it's working correctly


Posted By: mdoubson
Date Posted: 18 November 2009 at 11:52pm
Now your step is - add SOLVED to original post topic - guess this is Forum tradition...

-------------
Mark Doubson, Ph.D.


Posted By: znakeeye
Date Posted: 19 November 2009 at 5:56am
Is it advisable to use this ReportControl-update if shipping an application with 13.2.1?


Posted By: mdoubson
Date Posted: 20 November 2009 at 6:26am
As you use MFC (source) - sure - all modifications are in SVN.

-------------
Mark Doubson, Ph.D.


Posted By: John vH
Date Posted: 25 January 2010 at 11:38pm
I am seeing the same problem using virtual mode with the Active-X control (version 13.2.1). Has this issue also been solved for the Active-X? (I thought I already had the latest version).

If so, where can I get a copy of the fixed control? If not, will this problem be fixed with the next release of the report control Active-X

Thank you, regards John van Houten



Posted By: mdoubson
Date Posted: 26 January 2010 at 10:54am
Please try standard CJ VB VirtualList sample - I don't see any problem running it now under current 14.0 with AllowEdit = True. TAB navigate to next item - if last - first on next row

-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 26 January 2010 at 12:15pm
Please try https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta14.rar - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta14.rar  and confirm your case

-------------
Mark Doubson, Ph.D.


Posted By: John vH
Date Posted: 28 January 2010 at 3:07am
Yes, the 14.0 beta fixes the navigation problem. However with this version my app crashes when I click on an item (with the mouse) to edit it. This was not happening with the 13.2.1 version. Once again this is in Virtual Mode.

A test app I created that does not use virtual mode does not crash in this way, even with the 14.0 version of the control.

regards John van Houten


Posted By: mdoubson
Date Posted: 28 January 2010 at 2:51pm
Guess the problem in your app - I can edit items with click in https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar - https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar
and as I already told - in basic VB VirtualList sample. Please open the issue and attach some prototype with same problem.

-------------
Mark Doubson, Ph.D.


Posted By: John vH
Date Posted: 28 January 2010 at 4:53pm
Will do, thanks.



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