Print Page | Close Window

suggestion for improvement (cell, focusable)

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=14575
Printed Date: 16 November 2024 at 8:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: suggestion for improvement (cell, focusable)
Posted By: Michl
Subject: suggestion for improvement (cell, focusable)
Date 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 ) ;




Replies:
Posted By: mdoubson
Date Posted: 19 June 2009 at 12:28pm
OK - make sense

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