<?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 : Problem with markup and column width</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Problem with markup and column width]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 20:27:43 +0000</pubDate>
  <lastBuildDate>Tue, 03 Nov 2009 17:10:39 +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=15194</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[Problem with markup and column width : No ideas? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=54540&amp;title=problem-with-markup-and-column-width#54540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 15194<br /><strong>Posted:</strong> 03 November 2009 at 5:10pm<br /><br />No ideas?<br>]]>
   </description>
   <pubDate>Tue, 03 Nov 2009 17:10:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=54540&amp;title=problem-with-markup-and-column-width#54540</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with markup and column width : Hi;I changed the way I handle...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=54365&amp;title=problem-with-markup-and-column-width#54365</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 15194<br /><strong>Posted:</strong> 30 October 2009 at 4:16am<br /><br />Hi;<br>I changed the way I handle the markup part to use the new GetPaintManager()-&gt;m_bForceDynamicMarkupForCell=TRUE property introduced in version 13.2 - BTW I suggest to hide member variables and only provide Get/Set functions - but this results in a new problem.<br>Now when double clicking onto the right column divider to size the column to best fit the content, the column is resized to about 1000 px.<br><br>All I did was setting above flag and removing the last three lines of code I inserted into my last post.<br><br>Perhaps this is a BUG in report control!<br>]]>
   </description>
   <pubDate>Fri, 30 Oct 2009 04:16:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=54365&amp;title=problem-with-markup-and-column-width#54365</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with markup and column width : Hi; I found a strange bug in XTPReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=54347&amp;title=problem-with-markup-and-column-width#54347</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 15194<br /><strong>Posted:</strong> 29 October 2009 at 7:34pm<br /><br />Hi; <br><br>I found a strange bug in XTPReportControl version 13.2:<br>When resizing columns that are only partly visible (left or right border is outside the report control borders) the opposite column divider is drawn outside the report control bounding rectangle. <br>Additional the dragging column divider can be moved and dropped outside the bounding rectangle too!<br>I've never seen such 'feature' in any other control...<br><br>To show the problem I've uploaded a small MP4 video...<br><br><a href="uploads/20091029_193337_ReportCtrl.rar" target="_blank">uploads/20091029_193337_ReportCtrl.rar</a><br>]]>
   </description>
   <pubDate>Thu, 29 Oct 2009 19:34:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=54347&amp;title=problem-with-markup-and-column-width#54347</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with markup and column width : Hi;I have a further question about...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=54345&amp;title=problem-with-markup-and-column-width#54345</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 15194<br /><strong>Posted:</strong> 29 October 2009 at 7:05pm<br /><br />Hi;<br><br>I have a further question about XAML TextTrimming...<br>I'm using this XAML-String <table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strItem.Replace(_T("&amp;"), _T("&amp;amp;"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strItem.Replace(_T("&lt;"), _T("&amp;lt;"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strItem.Replace(_T("&gt;"), _T("&amp;gt;"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemMetrics-&gt;strText.Format(<strong>_T("&lt;StackPanel Margin='0, 0, 0, 0' HorizontalAlignment='Left' Orientation='Horizontal'&gt;")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; _T("&lt;Canvas HorizontalAlignment='Left' Width='15' Height='10'&gt;")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; _T("&lt;Ellipse Canvas.Top='-2' Fill='%s' Width='10' Height='10' StrokeThickness='1' Stroke='#aa335588'/&gt;")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; _T("&lt;/Canvas&gt;")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; _T("&lt;TextBlock Width='%ld', Height='%ld' MaxWidth='32000' TextTrimming='CharacterEllipsis'&gt;%s")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; _T("&lt;/TextBlock&gt;")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; _T("&lt;/StackPanel&gt;"</strong>), hexString, pDrawArgs-&gt;rcItem.Width()-17, pDrawArgs-&gt;rcItem.Height(), strItem);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pDrawArgs-&gt;pItem-&gt;GetMarkupUIElement()==0 || pDrawArgs-&gt;pItem-&gt;GetCaption(0)!=pItemMetrics-&gt;strText) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pDrawArgs-&gt;pItem-&gt;SetCaption(pItemMetrics-&gt;strText);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</pre></td></tr></table>in my own CXTPReportRecord derived MyRecord::GetItemMetrics() to format the content as shown in my previous posts above. I see the ellipsis at the end of the text if the column width is smaller than the whole content but because<br>I set the width of the text block explicitely in XAML, the report control measures the required with for showing the whole content wrong when double clicking onto the corresponding column divider. This results in a 'fixed' column width. Which is not what I want...<br>How can I solve this? Any ideas?<br>]]>
   </description>
   <pubDate>Thu, 29 Oct 2009 19:05:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=54345&amp;title=problem-with-markup-and-column-width#54345</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with markup and column width : Glad to help! The documentation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=53131&amp;title=problem-with-markup-and-column-width#53131</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 15194<br /><strong>Posted:</strong> 16 September 2009 at 5:59pm<br /><br />Glad to help! The documentation is certainly lacking in some areas. I usually just search Google for the element that I am working with and see what MS XAML can handle...sometimes it has (fortunately) been implemented in CJ XAML as well (as was the case with TextTrimming).]]>
   </description>
   <pubDate>Wed, 16 Sep 2009 17:59:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=53131&amp;title=problem-with-markup-and-column-width#53131</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with markup and column width :   jpbro wrote:Try using the T...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=53129&amp;title=problem-with-markup-and-column-width#53129</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 15194<br /><strong>Posted:</strong> 16 September 2009 at 5:56pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jpbro" alt="Originally posted by jpbro" style="vertical-align: text-bottom;" /> <strong>jpbro wrote:</strong><br /><br />Try using the TextTrimming='CharacterEllipsis' attribute for the TextBlock.</td></tr></table><br><br>Thanks!<br><br>After changing it to &lt;TextBlock <b>Width='100' TextTrimming='CharacterEllipsis'</b>&gt;xxx&lt;/TextBlock&gt; it works.<br>BTW "TextTrimming" isn't listed in Markup Readme.txt. So I didn't know this.<br>]]>
   </description>
   <pubDate>Wed, 16 Sep 2009 17:56:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=53129&amp;title=problem-with-markup-and-column-width#53129</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with markup and column width : Try using the TextTrimming=&amp;#039;CharacterEllipsis&amp;#039;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=53127&amp;title=problem-with-markup-and-column-width#53127</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 15194<br /><strong>Posted:</strong> 16 September 2009 at 5:05pm<br /><br />Try using the TextTrimming='CharacterEllipsis' attribute for the TextBlock.]]>
   </description>
   <pubDate>Wed, 16 Sep 2009 17:05:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=53127&amp;title=problem-with-markup-and-column-width#53127</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with markup and column width : Hi;I&amp;#039;m using markup to draw...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=53124&amp;title=problem-with-markup-and-column-width#53124</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 15194<br /><strong>Posted:</strong> 16 September 2009 at 4:33pm<br /><br />Hi;<br><br>I'm using markup to draw graphics combined with text in a report column. So far so good, but when the column width is smaller than the text length, no ellipsis is drawn at the end.<br>How can I handle this (see picture)?<br><br><img src="http://1.2.3.11/bmi/forum.codejock.com/uploads/20090916_163148_Report_Problem_.png" border="0"><br>]]>
   </description>
   <pubDate>Wed, 16 Sep 2009 16:33:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15194&amp;PID=53124&amp;title=problem-with-markup-and-column-width#53124</guid>
  </item> 
 </channel>
</rss>