Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - SOLVED: Virtual Report edit Item on Char bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: Virtual Report edit Item on Char bug

 Post Reply Post Reply
Author
Message
aceproof View Drop Down
Newbie
Newbie


Joined: 24 March 2008
Location: Russian Federation
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote aceproof Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: Virtual Report edit Item on Char bug
    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.
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2009 at 7:30pm
Back to Top
aceproof View Drop Down
Newbie
Newbie


Joined: 24 March 2008
Location: Russian Federation
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote aceproof Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2009 at 2:30am
Thanks, it's working correctly
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2009 at 11:52pm
Now your step is - add SOLVED to original post topic - guess this is Forum tradition...
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2009 at 5:56am
Is it advisable to use this ReportControl-update if shipping an application with 13.2.1?
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2009 at 6:26am
As you use MFC (source) - sure - all modifications are in SVN.
Back to Top
John vH View Drop Down
Newbie
Newbie
Avatar

Joined: 25 January 2010
Location: New Zealand
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote John vH Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2010 at 12:15pm
Back to Top
John vH View Drop Down
Newbie
Newbie
Avatar

Joined: 25 January 2010
Location: New Zealand
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote John vH Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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
and as I already told - in basic VB VirtualList sample. Please open the issue and attach some prototype with same problem.
Back to Top
John vH View Drop Down
Newbie
Newbie
Avatar

Joined: 25 January 2010
Location: New Zealand
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote John vH Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2010 at 4:53pm
Will do, thanks.
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.156 seconds.