<?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 : CXTPMarkupContext</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPMarkupContext]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 14:36:51 +0000</pubDate>
  <lastBuildDate>Wed, 25 Mar 2009 02:13:02 +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=13770</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[CXTPMarkupContext : You need SetDelegate insted  Set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13770&amp;PID=47070&amp;title=cxtpmarkupcontext#47070</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13770<br /><strong>Posted:</strong> 25 March 2009 at 2:13am<br /><br />You need SetDelegate insted<DIV>&nbsp;</DIV><DIV>Set it before you set Markup</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><FONT color=#010001>m_wndBackGround</FONT>.</FONT>SetDelegate(L"Run_MouseLeftButtonUp", CreateMarkupClassDelegate(this, &amp;CMarkupPadView::OnBorderMouseLeftButtonUp));</DIV><DIV>&nbsp;</DIV><DIV>and in your markup add &lt;Run MouseLeftButtonUp= 'Run_MouseLeftButtonUp' .... &gt;<BR></DIV>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 02:13:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13770&amp;PID=47070&amp;title=cxtpmarkupcontext#47070</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMarkupContext : I&amp;#039;ve added...  m_wndBackGround.SetMarkupText(...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13770&amp;PID=47032&amp;title=cxtpmarkupcontext#47032</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 13770<br /><strong>Posted:</strong> 24 March 2009 at 8:05am<br /><br />I've added...<DIV>&nbsp;</DIV><DIV><FONT color=#010001 size=2><FONT color=#010001 size=2>m_wndBackGround</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>SetMarkupText</FONT></FONT><FONT size=2>( </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>sXaml</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>MARKUP_NO_SCROLL</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>MARKUP_CENTERED</FONT></FONT><FONT size=2>);</DIV><DIV></FONT><FONT size=2><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>m_wndBackGround</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>AddHandler</FONT></FONT><FONT size=2>( </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPMarkupHyperlink</FONT></FONT><FONT size=2>::</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>m_pClickEvent</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CreateMarkupClassDelegate</FONT></FONT><FONT size=2>( </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>, &amp;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CCentroView</FONT></FONT><FONT size=2>::</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>OnHyperlinkClick</FONT></FONT><FONT size=2>));</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>// &gt;&gt; new</P><DIV><P><FONT color=#010001 size=2><FONT color=#010001 size=2>m_wndBackGround</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>AddHandler</FONT></FONT><FONT size=2>( </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPMarkupHyperlink</FONT></FONT><FONT size=2>::</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>m_pMouseLeftButtonDownEvent</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CreateMarkupClassDelegate</FONT></FONT><FONT size=2>( </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>, &amp;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CCentroView</FONT></FONT><FONT size=2>::</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>OnLeftMouseClick</FONT></FONT><FONT size=2>));</P><P>&lt;&lt;</FONT></P></DIV><DIV>and I've added a new function:</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>void</FONT></FONT><FONT color=#000000 size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CCentroView</FONT></FONT><FONT color=#000000 size=2>::</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>OnLeftMouseClick</FONT></FONT><FONT color=#000000 size=2>( </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPMarkupMouseButtonEventArgs</FONT></FONT><FONT color=#000000 size=2> * </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pArgs</FONT></FONT><FONT size=2><FONT color=#000000>)</FONT></P><P>{</P><P></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>&nbsp;&nbsp;&nbsp;&nbsp; AfxMessageBox</FONT></FONT><FONT size=2>( </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"OnLeftMouseClick"</FONT></FONT><FONT size=2>);</P><P>}</P></FONT></FONT></FONT><FONT size=2>But it's not called... I've stepped into debugger and </FONT></DIV><FONT size=2><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>void</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPMarkupInputElement</FONT></FONT><FONT size=2>::</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>OnMouseLeftButtonDown</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPMarkupMouseButtonEventArgs</FONT></FONT><FONT size=2>* </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>/*e*/</FONT></FONT><FONT size=2>)</P><P>{</P><P>}</P><DIV></DIV><DIV>is called instead.</DIV><DIV>&nbsp;</DIV><DIV>Can you please give me more information about intercepting this message and how to retrieve tag inserted into &lt;Run&gt; starting from a <FONT color=#010001>CXTPMarkupMouseButtonEventArgs pointer ?</FONT></DIV><DIV><FONT color=#010001></FONT>&nbsp;</DIV><DIV><FONT color=#010001>TIA</FONT></FONT></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 24 Mar 2009 08:05:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13770&amp;PID=47032&amp;title=cxtpmarkupcontext#47032</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMarkupContext : Hi, Catch m_pMouseLeftButtonDownEvent...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13770&amp;PID=47020&amp;title=cxtpmarkupcontext#47020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13770<br /><strong>Posted:</strong> 24 March 2009 at 6:07am<br /><br />Hi,<DIV>Catch m_pMouseLeftButtonDownEvent from this Run instead.</DIV>]]>
   </description>
   <pubDate>Tue, 24 Mar 2009 06:07:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13770&amp;PID=47020&amp;title=cxtpmarkupcontext#47020</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMarkupContext : I&amp;#039;d like to know how CMarkupContent...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13770&amp;PID=47017&amp;title=cxtpmarkupcontext#47017</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 13770<br /><strong>Posted:</strong> 24 March 2009 at 1:48am<br /><br />I'd like to know how CMarkupContent can fire event without hyperlink.<DIV>&nbsp;</DIV><DIV>Take your StartPageSample.xaml in MarkupPad as example: how can I react to click on news ? if I replace Run with HyperLink all titles are underlines...&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Can you please give me some suggestions ?</DIV><DIV>&nbsp;</DIV><DIV>TIA</DIV>]]>
   </description>
   <pubDate>Tue, 24 Mar 2009 01:48:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13770&amp;PID=47017&amp;title=cxtpmarkupcontext#47017</guid>
  </item> 
 </channel>
</rss>