Print Page | Close Window

xtpColumnTextWordBreak = Doesn't

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=21856
Printed Date: 15 May 2024 at 12:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: xtpColumnTextWordBreak = Doesn't
Posted By: Algae
Subject: xtpColumnTextWordBreak = Doesn't
Date Posted: 23 August 2013 at 2:26pm
Wordbreak column alignment does NOT work.

Neither xtpColumnTextWordBreak nor DT_WORDBREAK functions properly.

From what I can tell the following setting gets clobbered when the Theme is set which screws up wordbreak:

wndReport.GetPaintManager()->SetFixedRowHeight(FALSE);

If you set this AFTER the theme is set, it works as intended.

See attached ReportSampleView.cpp from the toolkit. Search "wordbreak" to see the few lines of code added to test the functionality. uploads/2657/ReportSampleView.zip" rel="nofollow - uploads/2657/ReportSampleView.zip

Kludge fix:
In CXTPReportPaintManager, change the default. m_bFixedRowHeight = FALSE;
Of course this will cause the opposite problem should you actually want to have FixedRowHeights.

This, and other paint settings either need to be decoupled from the CXTPReportPaintManager constructor or the CXTPReportPaintManager should not recreated every time a theme is set.

Obviously this is a very visible bug that impacts other features such as loading an XML layout for the report.

Not sure what's going on there at CJ but it seems that basic stable functionality is being slighted or ignored since 15.3.1. *See tree control as another example.

This is not a good sign for a library.

version 16.2.3
vs 2010
w 7 pro



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