HOWTO: Use my own CXTPReportRecords derived class |
Post Reply |
Author | |
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
Posted: 03 May 2013 at 4:35am |
Hi;
I have to change the sorting algorithm used for all text items in any report control of my application. So I checked the code and found out that best would be to overwrite the virtual CXTPReportRecords::Compare() function. But I can't find any way to use my own CXTPReportRecords collection like in CreateGroupRow()... What is the meaning of virtual functions when I can't derive? All I want to achieve is, that the control should use locale setting when comparing strings! I don't want to derive any item class - thats too boring. Any help or hint is very welcome. |
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
Still not solved!?!
|
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
Hi; Any news regarding my question? Can I solve it with 18.6 or higher?
|
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
BobC
Groupie Joined: 28 April 2017 Location: Longmont, CO Status: Offline Points: 55 |
Post Options
Thanks(0)
|
I have been using CXTPReportControl::SetRowsCompareFunc() to do my row comparisons, with code like this for locale use:
Does that meet your needs, or have I misunderstood your question? |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
I'll check this...
|
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |