Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Report control broken after upgrade to v15.1.3
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report control broken after upgrade to v15.1.3

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


Joined: 31 May 2010
Location: Ireland
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote ericchubb Quote  Post ReplyReply Direct Link To This Post Topic: Report control broken after upgrade to v15.1.3
    Posted: 08 May 2012 at 10:30am
Hi there

We have a CXTPReportControl - derived object which we use to display a hierarchical tree view of certain objects. One of the features of our control is that when a user clicks on the "+" under a collapsed item in the tree while holding the "ctrl" key, the tree item recursively expands itself and all its children until it terminates at the leaf children. 

We made the jump from XTP v12.0.2 to 15.1.3 last October, and then to 15.2.1 last month. However, we noticed with the October jump that strange behaviour was introduced with the feature mentioned above. What happens now is that if a user multi selects tree items and clicks on the "+" of one of the selected items while holding ctrl, the children of the expanded item appear above all the top level items, but they appear at the correct depth if you follow me:



So in the image above, the folder "contacts decompile" should appear as a child of the "act" child of "contacts.chm" but it appears as the first item in the tree.

The code we use to perform the recursive expansion is as follows:

//pointer to control hosting this CXTPReportRow
CReportControlEx* pReportControl = (CReportControlEx*)GetControl();
CXTPReportRows* pChildRows = GetChilds();
pReportControl->ExpandRows(pChildRows);

Then below we have 
void CReportControlEx::ExpandRows(CXTPReportRows* pRows)
{
	for(int nRowIndex=0; nRowIndex < pRows->GetCount(); nRowIndex++)
	{
		CXTPReportRow* pRow = pRows->GetAt(nRowIndex);
		pRow->SetExpanded(TRUE);
		CXTPReportRows* pChildRows = pRow->GetChilds();
		ExpandRows(pChildRows);
	}
}
We're stumped as to what is causing this behaviour, 
but we reckon it could be a conflict between code on our side and tree handling code in the Xtreme Toolkit -has anyone any idea what might be?
Thanks
Eric 



Eric



Product: Xtreme Toolkit Version 22.0

Platform: Windows 11 (64bit) -

Language: Visual C++ 2022 /C# .NET 2/3.5/4/5/6/7
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: 18 May 2012 at 8:23am
Hi,

please open a support ticket and attach a sample that reproduces your problem.

Andre

Codejock support
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.141 seconds.