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

XTP_NM_REPORT_CONSTRAINT_SELECTING not working

 Post Reply Post Reply
Author
Message
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post Topic: XTP_NM_REPORT_CONSTRAINT_SELECTING not working
    Posted: 19 December 2011 at 5:24am
Hi.
 
I was trying to use XTP_NM_REPORT_CONSTRAINT_SELECTING event with COMOB box.
but it seemed didn't work at all, but found out that It works with Keyboard event but not Mouse.
 
When I choose different item in a Combo it didn't send any event, but with Keyboard, Yes it did.
 
I think it should be fixed.
 
thanks
 
XTP 15.2.1, Unicode
 
 
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC

Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 20 December 2011 at 11:40am
Thanks, will check.

Andre

Codejock support
Back to Top
venkateshr View Drop Down
Newbie
Newbie


Joined: 04 February 2013
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkateshr Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2013 at 8:07am
Hello,

I am also facing the same problem.

Any Update on this ?

Thanks
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2016 at 8:36am
Hi;

I version 17.2 it's still not working!
Any fix available soon?

Regards,

M.
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2016 at 8:32am
Hello Martin,

I found that for this we need change method CXTPReportInplaceList::Apply()
void CXTPReportInplaceList::Apply()
{
    if (!pControl)
        return;

    CXTPReportControl* pReportControl = pControl;

    int nIndex = GetCurSel();
    if (nIndex != LB_ERR)
    {
        m_bApply = TRUE;

        CXTPReportRecordItemConstraint* pConstraint = (CXTPReportRecordItemConstraint*)GetItemDataPtr(nIndex);

        XTP_REPORTRECORDITEM_ARGS itemArgs = *((XTP_REPORTRECORDITEM_ARGS*)this);
        itemArgs.AddRef();

        pItem->OnConstraintChanged(&itemArgs, pConstraint);
        pReportControl->RedrawControl();

        pReportControl->OnConstraintSelecting(itemArgs.pRow, itemArgs.pItem, itemArgs.pColumn, pConstraint);
        pReportControl->SendMessageToParent(itemArgs.pRow, itemArgs.pItem, itemArgs.pColumn, XTP_NM_REPORT_VALUECHANGED, 0);

        itemArgs.Release();
    }

    pReportControl->SetFocus();
}


Please check  Is this changes provide expected behavior.

Regards,
 Oleksandr Lebed
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.172 seconds.