Print Page | Close Window

[SOLVED] Sort Triangle Problem

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=22667
Printed Date: 01 May 2024 at 9:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Sort Triangle Problem
Posted By: markr
Subject: [SOLVED] Sort Triangle Problem
Date Posted: 20 July 2015 at 12:36pm
Hello,

Unless I'm doing something wrong, it doesn't appear that the "xtpReportDrawSortTriangleAlways" option is functioning as intended in the v17 release.

I'm setting it as follows:

reportCtrl.GetPaintManager()->m_DrawSortTriangleStyle = xtpReportDrawSortTriangleAlways;

According to comments in the XTP source code, this should cause the sorted column caption to be truncated with an ellipses (if needed) so that the sort triangle is always shown. However, that's not what happens - the sort triangle is simply dropped if the column size becomes too small.

Regards,

Mark R.



Replies:
Posted By: olebed
Date Posted: 20 July 2015 at 4:10pm
Hello Mark,

Make sure that
reportCtrl.GetPaintManager()->m_DrawSortTriangleStyle = xtpReportDrawSortTriangleAlways;
called AFTER applying theme. Stop application after running (e.g. in some Draw method of paintManager) and check   m_DrawSortTriangleStyle value.

You can find out where this variable is changed by setting data break point to m_DrawSortTriangleStyle in your SomeView::OnCreate method.

I know about similar issue with drawing sort triangle when PlusMinus enabled (CXTPReportColumn::SetPlusMinus(TRUE)), but it is hard to fix.

Regards,
 Oleksandr Lebed


Posted By: markr
Date Posted: 20 July 2015 at 7:24pm
Hi Oleksandr,

Originally posted by olebed olebed wrote:

Make sure that
reportCtrl.GetPaintManager()->m_DrawSortTriangleStyle = xtpReportDrawSortTriangleAlways;
called AFTER applying theme.

Perfect, that did the trick. Thanks for the info!

Regards,

Mark R.



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