<?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 : BUG: XTPMarkupStatic unusable</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : BUG: XTPMarkupStatic unusable]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:46:42 +0000</pubDate>
  <lastBuildDate>Tue, 10 Jan 2012 11:25:23 +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=19317</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[BUG: XTPMarkupStatic unusable : Hi;IMHO the string passed to SetMarkupText()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67380&amp;title=bug-xtpmarkupstatic-unusable#67380</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19317<br /><strong>Posted:</strong> 10 January 2012 at 11:25am<br /><br />Hi;<br><br>IMHO the string passed to SetMarkupText() should not contain any string formatting code (e.g. %f, %s, %ld, ...)! It should be plain XAML - and nothing else. <br>]]>
   </description>
   <pubDate>Tue, 10 Jan 2012 11:25:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67380&amp;title=bug-xtpmarkupstatic-unusable#67380</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: XTPMarkupStatic unusable : What if they want to display %s?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67379&amp;title=bug-xtpmarkupstatic-unusable#67379</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 19317<br /><strong>Posted:</strong> 10 January 2012 at 11:19am<br /><br />What if they want to display %s?]]>
   </description>
   <pubDate>Tue, 10 Jan 2012 11:19:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67379&amp;title=bug-xtpmarkupstatic-unusable#67379</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: XTPMarkupStatic unusable : Hello,i think, that the correct...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67372&amp;title=bug-xtpmarkupstatic-unusable#67372</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 19317<br /><strong>Posted:</strong> 10 January 2012 at 4:13am<br /><br />Hello,<br><br>i think, that the correct way is to check for %s not only for %.<br>or check direct for lpszMarkup == "%s" or using strstr(..., "%s" )<br><br>&nbsp;Jimmy<br>]]>
   </description>
   <pubDate>Tue, 10 Jan 2012 04:13:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67372&amp;title=bug-xtpmarkupstatic-unusable#67372</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: XTPMarkupStatic unusable : Sounds good!Thanks ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67366&amp;title=bug-xtpmarkupstatic-unusable#67366</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19317<br /><strong>Posted:</strong> 09 January 2012 at 7:31pm<br /><br />Sounds good!<br><br>Thanks<br>]]>
   </description>
   <pubDate>Mon, 09 Jan 2012 19:31:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67366&amp;title=bug-xtpmarkupstatic-unusable#67366</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: XTPMarkupStatic unusable : For next release we did as you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67363&amp;title=bug-xtpmarkupstatic-unusable#67363</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 19317<br /><strong>Posted:</strong> 09 January 2012 at 12:19pm<br /><br />For next release we did as you suggested and reverted SetMarkupText and added SetMarkupTextEx for the ribbon (note if you used this in backstage you now need to update the code).]]>
   </description>
   <pubDate>Mon, 09 Jan 2012 12:19:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67363&amp;title=bug-xtpmarkupstatic-unusable#67363</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: XTPMarkupStatic unusable :  Hi;Since v15.2.1 the CTPMarkupStatic...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67205&amp;title=bug-xtpmarkupstatic-unusable#67205</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19317<br /><strong>Posted:</strong> 15 December 2011 at 3:12pm<br /><br />Hi;<br><br>Since v15.2.1 the CTPMarkupStatic control is unusable if the markup text contains a % (percent) sign.<br>I found no breaking change news in readme of this version about this kind of annoying error. This code change required several working hours to be located and fixed by creating our own control!!!!<br>Taken a look at the code change I found out that the % sign is used as a splitter for caption/text combination.<br><br>Old code:<table width="99%"><tr><td><pre class="BBcode">void CXTPMarkupStatic::SetMarkupText(LPCTSTR lpszMarkup)<br>{<br>&nbsp;&nbsp;&nbsp; MARKUP_RELEASE(m_pUIElement);<br><br>&nbsp;&nbsp;&nbsp; m_pUIElement = Parse(lpszMarkup);<br><br>&nbsp;&nbsp;&nbsp; if (m_hWnd) Invalidate(FALSE);<br>}</pre></td></tr></table><br>New code:<table width="99%"><tr><td><pre class="BBcode">void CXTPMarkupStatic::SetMarkupText(LPCTSTR lpszMarkup)<br>{<br>&nbsp;&nbsp;&nbsp; MARKUP_RELEASE(m_pUIElement);<br><br>&nbsp;&nbsp;&nbsp; if (lpszMarkup<b> &amp;&amp; _tcschr(lpszMarkup, _T('%')) != NULL</b>)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString strCaption;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetWindowText(strCaption);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString strMarkup;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <b>strMarkup.Format(lpszMarkup, (LPCTSTR)strCaption);</b>&nbsp; <b><font color="#990000">&lt;-- This crashes (ACCVIO)</font></b><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pUIElement = m_pMarkupContext-&gt;Parse(strMarkup);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pUIElement = m_pMarkupContext-&gt;Parse(lpszMarkup);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; if (m_hWnd) Invalidate(FALSE);<br>}</pre></td></tr></table><br><br>To CJ: It would be better to create a new function "SetMarkupTextEx" to extend the functionalities for your needs.<br>In any case, if you leave the code as is, the control is unusable in real world applications!<br>]]>
   </description>
   <pubDate>Thu, 15 Dec 2011 15:12:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19317&amp;PID=67205&amp;title=bug-xtpmarkupstatic-unusable#67205</guid>
  </item> 
 </channel>
</rss>