<?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 : CodeJock 17.3.0 - Markup issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : CodeJock 17.3.0 - Markup issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 22:01:10 +0000</pubDate>
  <lastBuildDate>Thu, 16 Mar 2017 17:16:48 +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=23231</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[CodeJock 17.3.0 - Markup issue : OK, now I tested my own theory....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75640&amp;title=codejock-17-3-0-markup-issue#75640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 23231<br /><strong>Posted:</strong> 16 March 2017 at 5:16pm<br /><br />OK, now I tested my own theory. Looking at the MarkupPad code, it can be seen that it actually converts the text to unicode before parsing. If I make the following change in the code for my overwritten class CDXXTMarkupStatic : public CStatic, public CXTPMarkupContext it works<div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>m_pUIElement = Parse(T2CW(pszMarkup));</div><div>//m_pUIElement = Parse(pszMarkup);</div></div><div></pre></td></tr></table></div></div><div>So, somehow the parser has changed?</div><div><br></div><div>Also notice that XTToolkit has two versions of Parse:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>CXTPMarkupUIElement* Parse(LPCSTR lpszBuffer);</div><div>CXTPMarkupUIElement* Parse(LPCWSTR lpszBuffer);</div><div></pre></td></tr></table></div><div>-cpede</div>]]>
   </description>
   <pubDate>Thu, 16 Mar 2017 17:16:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75640&amp;title=codejock-17-3-0-markup-issue#75640</guid>
  </item> 
  <item>
   <title><![CDATA[CodeJock 17.3.0 - Markup issue : No samples? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75639&amp;title=codejock-17-3-0-markup-issue#75639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4669">gibra</a><br /><strong>Subject:</strong> 23231<br /><strong>Posted:</strong> 16 March 2017 at 11:47am<br /><br />No samples?]]>
   </description>
   <pubDate>Thu, 16 Mar 2017 11:47:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75639&amp;title=codejock-17-3-0-markup-issue#75639</guid>
  </item> 
  <item>
   <title><![CDATA[CodeJock 17.3.0 - Markup issue : So I&amp;#039;m right. It&amp;#039;s Codejock...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75632&amp;title=codejock-17-3-0-markup-issue#75632</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4669">gibra</a><br /><strong>Subject:</strong> 23231<br /><strong>Posted:</strong> 14 March 2017 at 2:59pm<br /><br /><div>So I'm right. &nbsp;</div><div>It's Codejock that has changed method.&nbsp;</div><div><br></div><div><span style="line-height: 1.4;">However, in <u>all</u> Codejock <b>*.xaml</b> samples the string:</span></div><div><span style=": rgb248, 248, 252;"><b>&lt;?xml encoding="utf-8" ?&gt;</b></span></div><div><span style=": rgb248, 248, 252;">is missing.&nbsp;<img src="http://forum.codejock.com/smileys/smiley36.gif" border="0" alt="LOL" title="LOL" /></span></div><div><span style=": rgb248, 248, 252;"><br></span></div><div><span style=": rgb248, 248, 252;">I've tried to add it on my function, but the result is wrong.</span></div><div>Show me how to add the above xml tag, please.</div><div><br></div><div>Thank.</div>]]>
   </description>
   <pubDate>Tue, 14 Mar 2017 14:59:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75632&amp;title=codejock-17-3-0-markup-issue#75632</guid>
  </item> 
  <item>
   <title><![CDATA[CodeJock 17.3.0 - Markup issue : CJ 17 became more strict in terms...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75627&amp;title=codejock-17-3-0-markup-issue#75627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 23231<br /><strong>Posted:</strong> 13 March 2017 at 5:56pm<br /><br />CJ 17 became more strict in terms of XAML parsing and some broken XAML which was tolerated in earlier versions no longer renders.<div><br></div><div>If you don't have an &lt;xml ....&gt; tag, then you don't have XAML, why don't you try adding one. &nbsp;You could use markup pad to see what you need to have in there in order to be valid XAML.</div>]]>
   </description>
   <pubDate>Mon, 13 Mar 2017 17:56:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75627&amp;title=codejock-17-3-0-markup-issue#75627</guid>
  </item> 
  <item>
   <title><![CDATA[CodeJock 17.3.0 - Markup issue :   astoyan wrote:There is no problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75626&amp;title=codejock-17-3-0-markup-issue#75626</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4669">gibra</a><br /><strong>Subject:</strong> 23231<br /><strong>Posted:</strong> 13 March 2017 at 4:39pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by astoyan" alt="Originally posted by astoyan" style="vertical-align: text-bottom;" /> <strong>astoyan wrote:</strong><br /><br />There is no problem in Markup in 17.3.0, most likely you have your markup saved incorrectly.&nbsp;<div></td></tr></table></div><div><br></div><div>Sorry, but You are wrong.&nbsp;<img src="http://forum.codejock.com/smileys/smiley18.gif" border="0" alt="Ouch" title="Ouch" /></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">I <u>don't use</u> any saved XML/XAML.</span></div><div><span style="line-height: 1.4;"><b>I use simply only code</b>. Example, I have a function which return a markup string:</span></div><div><span style="line-height: 1.4;"><br></span></div><div><div><font face="Courier New, Courier, mono" color="#0000ff">Public Function GetMarkup(ByVal pString As String, Optional ByVal pColor As String = "Gold", Optional ByVal pFontSize As Long = 13) As String</font></div><div><font face="Courier New, Courier, mono" color="#0000ff">&nbsp; &nbsp; Dim pMessage As String</font></div><div><font face="Courier New, Courier, mono" color="#0000ff">&nbsp; &nbsp; If pString = vbNullString Then Exit Function</font></div><div><font face="Courier New, Courier, mono" color="#0000ff">&nbsp; &nbsp;&nbsp;</font></div><div><font face="Courier New, Courier, mono" color="#0000ff">&nbsp; &nbsp; pMessage = pString</font></div><div><font face="Courier New, Courier, mono" color="#0000ff">&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;b&gt;", "&lt;Bold&gt;")</font></div><div><font face="Courier New, Courier, mono" color="#0000ff">&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;/b&gt;", "&lt;/Bold&gt;")</font></div></div><div><font face="Courier New, Courier, mono" color="#0000ff"><br></font></div><div><font face="Courier New, Courier, mono" color="#0000ff"><div>&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;u&gt;", "&lt;Underline&gt;")</div><div>&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;/u&gt;", "&lt;/Underline&gt;")</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;i&gt;", "&lt;Italic&gt;")</div><div>&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;/i&gt;", "&lt;/Italic&gt;")</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;h&gt;", "&lt;Hyperlink&gt;")</div><div>&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;/h&gt;", "&lt;/Hyperlink&gt;")</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;c&gt;", "&lt;Run Background='" &amp; pColor &amp; "'&gt;")</div><div>&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;/c&gt;", "&lt;/Run&gt;")</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;r&gt;", "&lt;Run Foreground='Red'&gt;")</div><div>&nbsp; &nbsp; pMessage = Replace(pMessage, "&lt;/r&gt;", "&lt;/Run&gt;")</div><div>&nbsp; &nbsp;&nbsp;</div></font></div><div><font face="Courier New, Courier, mono" color="#0000ff">&nbsp; &nbsp;' and so on ...</font></div><div><font face="Courier New, Courier, mono" color="#0000ff"><br></font></div><div><font face="Courier New, Courier, mono" color="#0000ff">&nbsp; &nbsp; GetMarkup = "&lt;TextBlock FontFamily='Segoe UI' FontSize='" &amp; pFontSize &amp; "' HorizontalAlignment='Left'&gt;" &amp; pMessage &amp; "&lt;/TextBlock&gt;"</font></div><div><font face="Courier New, Courier, mono" color="#0000ff">End Function</font></div><div><br></div><div>As you can see, i don't use something like:&nbsp;<span style="line-height: 1.4;">&nbsp;&lt;?xml encoding="utf-8" ?&gt;</span></div><div><br></div><div><u>Prior</u> to v.17.0.0 all worked fine, with any chars.</div><div><u>After</u> v. 17.0.0 all&nbsp;<span style="line-height: 1.4;">chars</span><span style="line-height: 1.4;">&nbsp;with&nbsp;</span><span style="line-height: 1.4;">accents will made a wrong markup string.&nbsp;</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Example, the next statement (with accents):</span></div><div><span style=": rgb248, 248, 252; line-height: 1.4;"><div><b>GetMarkup("è ora di andare giù")</b></div><div>used in a <b>TaskDialog</b>, become:</div><div><font face="Courier New, Courier, mono" color="#0000ff">&lt;TextBlock FontFamily='Segoe UI' FontSize='13' HorizontalAlignment='Left'&gt;è ora di andare giù&lt;/TextBlock&gt;</font></div><div><br></div><div>and produce the <u>wrong results</u>:</div><div><img src="http://www.vbcorner.net/images/codejock/markup1.png" border="0" /></div></span></div><div><span style=": rgb248, 248, 252; line-height: 1.4;"><br></span></div><div><span style=": rgb248, 248, 252; line-height: 1.4;">While, when I remove accents from phrase:</span></div><div><span style=": rgb248, 248, 252;"><b>GetMarkup("e' ora di andare giu'")</b></span></div><div><span style=": rgb248, 248, 252; line-height: 1.4;">produce the <u>correct results</u>:</span></div><div><span style=": rgb248, 248, 252;"><img src="http://www.vbcorner.net/images/codejock/markup2.png" border="0" /></span></div><div><span style=": rgb248, 248, 252;"><br></span></div><div><span style=": rgb248, 248, 252;"><br></span></div><div><span style=": rgb248, 248, 252;">I haven't changed nothing, only Codejock version has changed.&nbsp;<img src="http://forum.codejock.com/smileys/smiley36.gif" border="0" alt="LOL" title="LOL" /></span></div><div><span style=": rgb248, 248, 252;"><br></span></div><div><span style=": rgb248, 248, 252;">Please, solve because my language (italian) use a lot of accents.&nbsp;</span></div><div><span style=": rgb248, 248, 252; line-height: 1.4;"><br></span></div>]]>
   </description>
   <pubDate>Mon, 13 Mar 2017 16:39:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75626&amp;title=codejock-17-3-0-markup-issue#75626</guid>
  </item> 
  <item>
   <title><![CDATA[CodeJock 17.3.0 - Markup issue : OK, but how do we do this run-time...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75625&amp;title=codejock-17-3-0-markup-issue#75625</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 23231<br /><strong>Posted:</strong> 13 March 2017 at 3:27pm<br /><br />OK, but how do we do this run-time without a file to encode?<div><br></div><div>Typically I use a MFC CString to generate and set the Markup text.</div><div><br></div><div>Does it require that I run Unicode or wide-character for the markup text?</div><div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Mon, 13 Mar 2017 15:27:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75625&amp;title=codejock-17-3-0-markup-issue#75625</guid>
  </item> 
  <item>
   <title><![CDATA[CodeJock 17.3.0 - Markup issue : There is no problem in Markup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75624&amp;title=codejock-17-3-0-markup-issue#75624</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 23231<br /><strong>Posted:</strong> 13 March 2017 at 1:44pm<br /><br />There is no problem in Markup in 17.3.0, most likely you have your markup saved incorrectly. Prior to 17.0 Markup used a custom implemented XML parser that allowed improperly saved XML to be used in an application like a valid one. Introducing the standard parser in 17.0 fixed the root problem but made some legacy XAML incompatible.<div><br></div><div>I have added French accent symbols to Xtreme SuitePro ActiveX v17.3.0\Samples\Common\VB\MarkupPad\Markups\Welcome.xaml and opened it in MarkupPad VB sample, here is the screenshot:</div><div><img src="uploads/8199/unicode-in-markup.png" height="730" width="949" border="0" /><br></div><div><br></div><div>So, as a solution, please make sure you use a proper XML/XAML editor and use save a file as UTF-8 and to make sure specify this in XML header as:</div><div>&lt;?xml encoding="utf-8" ?&gt;</div>]]>
   </description>
   <pubDate>Mon, 13 Mar 2017 13:44:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75624&amp;title=codejock-17-3-0-markup-issue#75624</guid>
  </item> 
  <item>
   <title><![CDATA[CodeJock 17.3.0 - Markup issue : Any fix to this problem. We can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75622&amp;title=codejock-17-3-0-markup-issue#75622</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 23231<br /><strong>Posted:</strong> 11 March 2017 at 4:06am<br /><br />Any fix to this problem. We can't release software with v17.3.0 since e.g. the pinned recent file list can't show the names of the files when they include non ASCII characters.<div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Sat, 11 Mar 2017 04:06:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75622&amp;title=codejock-17-3-0-markup-issue#75622</guid>
  </item> 
  <item>
   <title><![CDATA[CodeJock 17.3.0 - Markup issue : Any progress ?yt-def  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75598&amp;title=codejock-17-3-0-markup-issue#75598</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9113">yt-def</a><br /><strong>Subject:</strong> 23231<br /><strong>Posted:</strong> 06 March 2017 at 11:37am<br /><br />Any progress ?<br><br>yt-def<br>]]>
   </description>
   <pubDate>Mon, 06 Mar 2017 11:37:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75598&amp;title=codejock-17-3-0-markup-issue#75598</guid>
  </item> 
  <item>
   <title><![CDATA[CodeJock 17.3.0 - Markup issue : Any progress on this issue?-cpede...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75545&amp;title=codejock-17-3-0-markup-issue#75545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 23231<br /><strong>Posted:</strong> 09 February 2017 at 9:25am<br /><br />Any progress on this issue?<div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Thu, 09 Feb 2017 09:25:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23231&amp;PID=75545&amp;title=codejock-17-3-0-markup-issue#75545</guid>
  </item> 
 </channel>
</rss>