Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - suggestion for improvement (cell, focusable)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

suggestion for improvement (cell, focusable)

 Post Reply Post Reply
Author
Message
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Topic: suggestion for improvement (cell, focusable)
    Posted: 19 June 2009 at 8:39am
Hi,

we have in our report only one column which accepts input (editable, focusable).
Although this column is at the end of report, the first cell is focused (white background and dots).
This happens before a editable cell was selected and the report got focus.

I found the problem in populate.


    if (m_pFocusedColumn == NULL && m_bFocusSubItems)
    {
        m_pFocusedColumn = m_pColumns->GetFirstVisibleColumn();
    }


This should be implement like this


    CXTPReportRow* pRow = GetRows()->GetAt( GetTopRowIndex() );
    m_pFocusedColumn = GetNextFocusableColumn( pRow, 0, +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: 19 June 2009 at 12:28pm
OK - make sense
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.125 seconds.