Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - xtpColumnTextWordBreak = Doesn't
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

xtpColumnTextWordBreak = Doesn't

 Post Reply Post Reply
Author
Message
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Topic: xtpColumnTextWordBreak = Doesn't
    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

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
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.188 seconds.