Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Sort Triangle Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Sort Triangle Problem

 Post Reply Post Reply
Author
Message
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] Sort Triangle Problem
    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.
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.