[solved] SetCaption Called too Early |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 645 |
Post Options
Thanks(0)
Posted: 07 March 2017 at 5:02am |
During creation of the columns in a report control you have code like this:
It seems, that calling SetCaption right after pCol is created is not allowed, since m_pColumns is not defined yet in the CXTPReportColumn class. You should test for m_pColumns == NULL in CXTPReportColumn, and allow for e.g. SetCaption. -cpede
|
|
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello cpede,
It is reasonable remark, I have added additional verification of m_pColumns in all methods for safety. But you should remember that calling most of methods of CXTPReportColumn don't have any effect when column isn't linked to ReportControl. Thank you. Oleksandr Lebed |
|
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 |