Print Page | Close Window

VK_NEXT behavior: By design?

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=13746
Printed Date: 21 May 2024 at 5:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VK_NEXT behavior: By design?
Posted By: znakeeye
Subject: VK_NEXT behavior: By design?
Date Posted: 20 March 2009 at 10:57am

void CXTPReportNavigator::MovePageDown(BOOL bSelectBlock, BOOL bIgnoreSelection)
{
    if  (!m_pReportControl)
        return;

    int nCurrentRowIndex = m_pReportControl->m_nFocusedRow != -1 ? m_pReportControl->m_nFocusedRow : 0;
    nCurrentRowIndex = min(
        m_pReportControl->m_pRows->GetCount() - 1, // Minus 1 - by design? I would expect the selection to go to the bottom!
        nCurrentRowIndex + m_pReportControl->GetReportAreaRows(nCurrentRowIndex, true));

    m_pReportControl->SetFocusedRow(
        m_pReportControl->m_pRows->GetAt(nCurrentRowIndex),
        bSelectBlock,
        bIgnoreSelection);
}

Same goes for MovePageUp().
 
 
BUG: Pagedown does not select the last row in all cases!
 


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: mdoubson
Date Posted: 24 March 2009 at 8:27pm
I guess it was somebody way to design - like MS Word show you last one or two lines from previous Page. Can be set as options - how many lines (rows) to show during Page scroll. There is also fixed setting inside the code for WheelScroll - also can be customized...

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


Posted By: mdoubson
Date Posted: 25 March 2009 at 10:57am
>>// Minus 1 - by design? I would expect the selection to go to the bottom!
What do you asking? m_pReportControl->m_pRows->GetCount() - 1 == LAST EXISTED Rows in Control!!!


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


Posted By: znakeeye
Date Posted: 01 April 2009 at 6:47am

See screenshot above!



-------------
PokerMemento - http://www.pokermemento.com/


Posted By: mdoubson
Date Posted: 01 April 2009 at 9:07am
I guess it fixed already - try static sample with recent code https://forum.codejock.com/uploads/DemoVersion/ReportSampleSatic.rar - https://forum.codejock.com/uploads/DemoVersion/ReportSampleSatic.rar  please

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


Posted By: znakeeye
Date Posted: 01 April 2009 at 11:39am

Yep!



-------------
PokerMemento - http://www.pokermemento.com/


Posted By: mdoubson
Date Posted: 01 April 2009 at 11:45am
Good

-------------
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