Print Page | Close Window

m_strNoItems and word wrap

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=6697
Printed Date: 17 June 2024 at 5:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: m_strNoItems and word wrap
Posted By: JohnCrenshaw
Subject: m_strNoItems and word wrap
Date Posted: 21 March 2007 at 4:09pm
I want to display a message that is a little bit longer than normal when the list has no entries in it because there are some things the user may want to consider in this case. My problem is that the message in m_strNoItems doesn't wrap. I have hard coded some newlines as a temporary fix, but since this control may be wider depending on user options, this is a bad workaround.
 
I'd like to modify this in the codejock files but first I have to make sure my code won't be broken again when I get the next version.
 
More to the point, could you add DT_WORDBREAK to the flags on line 1061 of xtpreportcontrol.cpp? This is a call to DrawText() inside the function DrawRows(). I have already tested this and the results are acceptable.



Replies:
Posted By: sserge
Date Posted: 22 March 2007 at 5:32pm
Ok, thanks for the suggestion. Will do.

--
WBR,
Serge



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