Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - SelectedRows bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SelectedRows bug

 Post Reply Post Reply
Author
Message
bschaer View Drop Down
Groupie
Groupie


Joined: 27 June 2006
Location: United States
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote bschaer Quote  Post ReplyReply Direct Link To This Post Topic: SelectedRows bug
    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
Back to Top
bschaer View Drop Down
Groupie
Groupie


Joined: 27 June 2006
Location: United States
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote bschaer Quote  Post ReplyReply Direct Link To This Post 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();

}

 
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 14 October 2007 at 4:32pm
Ok, thanks for a note. We'll fix this for future versions.

--
WBR,
Serge
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.