SelectedRows bug |
Post Reply |
Author | |
bschaer
Groupie Joined: 27 June 2006 Location: United States Status: Offline Points: 28 |
Post Options
Thanks(0)
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
|
|
bschaer
Groupie Joined: 27 June 2006 Location: United States Status: Offline Points: 28 |
Post Options
Thanks(0)
|
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(); } |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Ok, thanks for a note. We'll fix this for future versions.
-- WBR, Serge |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |