Print Page | Close Window

[fixed]BUG in CXTPReportSelectedRows::Clear(FALSE)

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=23124
Printed Date: 31 October 2024 at 10:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [fixed]BUG in CXTPReportSelectedRows::Clear(FALSE)
Posted By: mgampi
Subject: [fixed]BUG in CXTPReportSelectedRows::Clear(FALSE)
Date Posted: 07 September 2016 at 9:53am
Hello;

This function CXTPReportSelectedRows::Clear(BOOL bNotifyOnClear) has no effect when bNotifyOnClear is set to FALSE:

BOOL CXTPReportSelectedRows::Clear(BOOL bNotifyOnClear)
{
    BOOL bClear = FALSE;

    if (m_arrSelectedBlocks.GetSize() > 0)
    {
        if (bNotifyOnClear)
        {
            const BOOL bCancel = _NotifySelChanging(xtpReportSelectionClear);

            if (!bCancel)
            {
                bClear = TRUE;
                m_arrSelectedBlocks.RemoveAll();
                SetChanged(TRUE);
                m_nRowBlockBegin = -1;
                m_nRowType = xtpRowTypeBody;
                m_pControl->RedrawControl();
            }
        }
    }

    return bClear;
}


should be changed to:


BOOL CXTPReportSelectedRows::Clear(BOOL bNotifyOnClear)
{
    BOOL bClear = !bNotifyOnClear;

    if (m_arrSelectedBlocks.GetSize() > 0)
    {
        if (bNotifyOnClear)
            bClear = !_NotifySelChanging(xtpReportSelectionClear);

    if (bClear) {
      m_arrSelectedBlocks.RemoveAll();
      SetChanged(TRUE);
      m_nRowBlockBegin = -1;
      m_nRowType = xtpRowTypeBody;
      m_pControl->RedrawControl();   
    }
    }

    return bClear;
}


Regards!




-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: olebed
Date Posted: 07 September 2016 at 12:43pm
Hello Martin,

Thank you for bug report. I have fixed this method.

Regards,
 Oleksandr Lebed


Posted By: mgampi
Date Posted: 07 September 2016 at 3:13pm
Originally posted by olebed olebed wrote:

Hello Martin,

Thank you for bug report. I have fixed this method.

Regards,
 Oleksandr Lebed


Thanks for this quick reply!
Any ideas when the next release is due?

Regards,


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: olebed
Date Posted: 07 September 2016 at 5:21pm
We expect next release in September.  http://www.codejock.com/corporate/release-date-policy.asp" rel="nofollow - But generally it is our policy to not provide exact release dates.



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