Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - VK_NEXT behavior: By design?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

VK_NEXT behavior: By design?

 Post Reply Post Reply
Author
Message
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 Topic: VK_NEXT behavior: By design?
    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/
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: 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...
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: 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!!!
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: 01 April 2009 at 6:47am

See screenshot above!

PokerMemento - http://www.pokermemento.com/
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: 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 please
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: 01 April 2009 at 11:39am

Yep!

PokerMemento - http://www.pokermemento.com/
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: 01 April 2009 at 11:45am
Good
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.188 seconds.