Print Page | Close Window

HOWTO: Resort tree like report control

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=15651
Printed Date: 23 September 2024 at 9:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HOWTO: Resort tree like report control
Posted By: mgampi
Subject: HOWTO: Resort tree like report control
Date Posted: 17 November 2009 at 11:33am
Hi;

In a tree like report control I sometimes change the item(s) display text by setting pItemMetrics->strText=...
This sometimes results in a no longer sorted tree.
So I implemented a sort command for the end user, but when I call CXTPReportControl.ReSort(), nothing happens, because the compare is done with the return value(s) og CXTPReportRecordItem::GetCaption().
This lead to my question: how to implement a sort function in this case, when the 'caption' changes in CXTPReportRecord::GetItemMetrics()?


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

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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