<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Multiline header editing. Visual goof fix.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Multiline header editing. Visual goof fix.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 04 Jun 2026 03:05:00 +0000</pubDate>
  <lastBuildDate>Mon, 14 Mar 2016 14:47:30 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=22958</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Multiline header editing. Visual goof fix. : Hello Algae,I think we fixed this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22958&amp;PID=74584&amp;title=multiline-header-editing-visual-goof-fix#74584</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22958<br /><strong>Posted:</strong> 14 March 2016 at 2:47pm<br /><br />Hello Algae,<br><br>I think we fixed this issue in version 17.0.<br><br>I have check this behavior in last version (17.1) &nbsp;with ReportSample -&gt; MergeTest. And I didn't notice any troubles. Except I could not get multiline InplaceEdit. &nbsp;After using your settings I could edit cells&nbsp;(long text was added) in footer section &nbsp;and &nbsp;row's high are changed after finish editing with &#091;Enter&#093;.<br><br>Setting text with code after creation and population gives the same good result.<br><p><table width="99%"><tr><td><pre class="BBcode">CXTPReportRecord* pRecord = GetReportCtrl().GetSections()-&gt;GetAt(xtpReportSectionHeader)-&gt;GetRecords()-&gt;GetAt(0);</p><p>CXTPReportRecordItemText* pItem = DYNAMIC_DOWNCAST(CXTPReportRecordItemText, pRecord-&gt;GetItem(5));<br></p>&nbsp;pItem-&gt;SetValue(_T("verry verry verry long caption"));<br>// without calling redrawing of report control</pre></td></tr></table><br>Regards,<br>&nbsp;Oleksandr Lebed<br>]]>
   </description>
   <pubDate>Mon, 14 Mar 2016 14:47:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22958&amp;PID=74584&amp;title=multiline-header-editing-visual-goof-fix#74584</guid>
  </item> 
  <item>
   <title><![CDATA[Multiline header editing. Visual goof fix. : This issue has been around for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22958&amp;PID=74575&amp;title=multiline-header-editing-visual-goof-fix#74575</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 22958<br /><strong>Posted:</strong> 13 March 2016 at 4:35pm<br /><br />This issue has been around for a long, long time but I ran into a situation where I required a fix.<br><br>A body section row edits and sizes without trouble. A header section row does not!<br><br>The problem is that when you edit a multiline Header row the edited cell does not update visually. The cell will not accommodate your entry properly because the layout does not change automatically.<br><br>First, the non-obvious steps to make a multiline Header row. Set up the column options:<br>(m_align will be whatever you want.. center, left, right)<br><ol><li>pColumn-&gt;SetAlignment(m_align | xtpColumnTextWordBreak | xtpColumnTextVCenter);</li><li>pColumn-&gt;EnableResize(TRUE);</li><li>pColumn-&gt;GetEditOptions()-&gt;m_dwEditStyle |= ES_MULTILINE | ES_AUTOVSCROLL;</li></ol><p>*Please note that header/footer sections do not have their own column structures, edit controls and so forth. Everything under every column in every section behaves the same way.<br></p><p>Then fix the header cell size after edit:</p><p>1. Set up a notify message:</p><p>ON_NOTIFY(XTP_NM_REPORT_VALUECHANGED, XTP_ID_REPORT_CONTROL, OnReportValueChanged)<br></p>2. Set up the handler:<br><br>void CMyReportView::OnReportValueChanged(NMHDR * pNotifyStruct, LRESULT*)<br>{<br>&nbsp;&nbsp;&nbsp; XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;<br><br>&nbsp;&nbsp;&nbsp; if(!pItemNotify)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br><br>&nbsp;&nbsp;&nbsp; if(pItemNotify-&gt;pRow-&gt;GetType() == xtpRowTypeHeader)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(pItemNotify-&gt;pItem)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetReportCtrl().AdjustLayout();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>The call to AdjustLayout fixes the new cell size properly.<br><br>Hopefully this will help simplify the process.<br><br>V. 16.26.<br>I believe V. 17.1 has same problem.<br>]]>
   </description>
   <pubDate>Sun, 13 Mar 2016 16:35:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22958&amp;PID=74575&amp;title=multiline-header-editing-visual-goof-fix#74575</guid>
  </item> 
 </channel>
</rss>