Print Page | Close Window

Some bugs in Report Control

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=15522
Printed Date: 23 April 2024 at 9:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Some bugs in Report Control
Posted By: aceproof
Subject: Some bugs in Report Control
Date Posted: 02 November 2009 at 4:33am
1. Function DoAutoVertScrollIfNeed does not work while dragging item
Quote
void CXTPReportControl::DoAutoVertScrollIfNeed(CPoint ptClick, CPoint pt)
{
     ...
     CXTPReportRow* pRow0 = m_arrScreenRows.GetAt(0);
     CXTPReportRow* pRow1 = m_arrScreenRows.GetAt(m_arrScreenRows.GetCount() - 1);

     ...
     int nDirection = 0;

     CRect rc0 = m_rcReportArea;
     CRect rc1 = m_rcReportArea;
     rc0.bottom = m_rcReportArea.top;// + 20;
     rc1.top = m_rcReportArea.bottom;// - 20;


     if (rc0.PtInRect(pt))
          nDirection = -1;
     else if (rc1.PtInRect(pt))
          nDirection = 1;
     ...
}

rc0 and rc1 is empty, nDirection = 0 all the time

2.
report.FocusSubItems(TRUE);

While pressing the "Left" key the selection of the Item don't change



Replies:
Posted By: mdoubson
Date Posted: 10 November 2009 at 12:25pm
You right, thanks. Remove // in red lines please

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


Posted By: larryp
Date Posted: 09 December 2009 at 2:11pm
I made this change, but it introduced a problem where if I manually scroll down, then click on any row, the control scrolls all the way to the top.
So, this is not the real fix.
 
--Larry


Posted By: mdoubson
Date Posted: 09 December 2009 at 2:18pm

It used little bit different now - please get updated source - https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar - https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar



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



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