Print Page | Close Window

SelectedRows bug

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=8370
Printed Date: 15 November 2024 at 4:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SelectedRows bug
Posted By: bschaer
Subject: SelectedRows bug
Date Posted: 10 October 2007 at 12:08am
A multiple selection report selection extended first time with CTRL-click will not get m_bChanged set properly because Invert->Add/Remove does not set it.  The result of this is that no XTP_NM_REPORT_SELCHANGED message is sent after CTRL-click.
 
Please set m_bChanged in CTPReportSelectedRows::Add and CXTPReportSelectedRows::Remove or in a location that better suits you.
 
Thanks,
Brian



Replies:
Posted By: bschaer
Date Posted: 10 October 2007 at 12:46am
I spoke too quickly.  Invert does indeed set m_bChanged.  The problem is in CXTPReportControl::OnLButtonDown.  After calling Invert, you must do like:
 

if (bFocusChanged && bIgnoreSelection && IsSelectionEnabled())

{

m_pSelectedRows->Invert(pRow);

if (m_pSelectedRows->IsChanged())

OnSelectionChanged();

}

 


Posted By: sserge
Date Posted: 14 October 2007 at 4:32pm
Ok, thanks for a note. We'll fix this for future versions.

--
WBR,
Serge



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