Print Page | Close Window

HOWTO: CXTPReportColumnDisplaySettings

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=19692
Printed Date: 23 July 2018 at 5:24am


Topic: HOWTO: CXTPReportColumnDisplaySettings
Posted By: mgampi
Subject: HOWTO: CXTPReportColumnDisplaySettings
Date Posted: 24 April 2012 at 6:03pm
Hi;

I'm just trying to use CXTPReportColumnDisplaySettings but I'm unable to get the desired results.
Setting
    Column->GetDisplayOptions()->Column()->SetShowIcon(TRUE);
    Column->GetDisplayOptions()->Column()->SetShowText(FALSE);
still shows the text part of the column caption. But I only want to show the plain icon alone.
Is this not fully implemented yet? If so, when will the implementation be completed?


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

Product: Xtreme Toolkit v 15.3.1, new Projects v 18.3.0
Platform: Windows 8.1 (64bit)
Language: VC++ 20



Replies:
Posted By: mgampi
Date Posted: 05 March 2018 at 5:11pm
Hello;

I'm using this part of code to set up the visibility of icons and text in "GroupBy" columns inside the GroupBy control when initializing the report control instance:

Column->GetDisplayOptions()->GroupBy()->SetShowIcon(FALSE);
Column->GetDisplayOptions()->GroupBy()->SetShowText(TRUE);
Column->GetDisplayOptions()->Column()->SetShowIcon(TRUE);
Column->GetDisplayOptions()->Column()->SetShowText(FALSE);

But this has no effect, because the control uses CXTPReportPaintManager::DrawColumn() to draw the content of the column. Inside this methode I can see that only pColumn->GetDisplayOptions()->Column()->IsShowText() is used. Therefore I cannot get the effect I need. In regular columns I only want an icon to be shown, but in GroupBy columns of course the text should be shown.
This is definitely not possible in v18.3 but as I remember it worked in 15.3.1? or later!


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

Product: Xtreme Toolkit v 15.3.1, new Projects v 18.3.0
Platform: Windows 8.1 (64bit)
Language: VC++ 20


Posted By: mgampi
Date Posted: 07 March 2018 at 6:35am
Any comment from CJ?


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

Product: Xtreme Toolkit v 15.3.1, new Projects v 18.3.0
Platform: Windows 8.1 (64bit)
Language: VC++ 20


Posted By: olebed
Date Posted: 03 April 2018 at 6:43am
Hello Martin,

I have found similar question from you in 2012 year for v15.3.1 and joined these topics. Looks like this feature haven't been finished.
As you noticed  pColumn->GetDisplayOptions()  used only in one place in method CXTPReportPaintManager::DrawColumn()  and uses only ->Column()->IsShowText() part.

I will try to finish this feature. Thank you for bringing this to our attention.

Regards,
 Oleksandr Lebed


Posted By: mgampi
Date Posted: 03 April 2018 at 7:04am
Great!

As you have recognized, I'm waiting for this feature since several years...


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

Product: Xtreme Toolkit v 15.3.1, new Projects v 18.3.0
Platform: Windows 8.1 (64bit)
Language: VC++ 20



Print Page | Close Window