<?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 : Markup Hyperlink and Report Control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Markup Hyperlink and Report Control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 02:08:05 +0000</pubDate>
  <lastBuildDate>Tue, 15 Jun 2010 17:39:37 +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=14423</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[Markup Hyperlink and Report Control : I did some tracing into the code,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=58960&amp;title=markup-hyperlink-and-report-control#58960</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6060">acwest</a><br /><strong>Subject:</strong> 14423<br /><strong>Posted:</strong> 15 June 2010 at 5:39pm<br /><br />I did some tracing into the code, and in CXTPMarkupContext::OnWndMsg there is a test for m_pActiveElement &amp;&amp; m_pActiveElement != pUIElement, which the link in question is failing. I'm working on figuring out why the MarkupContext thinks the mouse is in a different element than it is actually in now.<br>-Craig<br>]]>
   </description>
   <pubDate>Tue, 15 Jun 2010 17:39:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=58960&amp;title=markup-hyperlink-and-report-control#58960</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Hyperlink and Report Control : I figured out how to get hyperlinks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=58939&amp;title=markup-hyperlink-and-report-control#58939</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6060">acwest</a><br /><strong>Subject:</strong> 14423<br /><strong>Posted:</strong> 14 June 2010 at 1:45pm<br /><br />I figured out how to get hyperlinks working, using EnableMarkup, and AddHandler. The problem I have now is that when a link is displayed in the first line of the viewable area (sometimes the second line as well) the event dispatching code doesn't recognize it as being a hyperlink. If I scroll it down a line, it works fine...]]>
   </description>
   <pubDate>Mon, 14 Jun 2010 13:45:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=58939&amp;title=markup-hyperlink-and-report-control#58939</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Hyperlink and Report Control :    mdoubson wrote:You can USE...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=58765&amp;title=markup-hyperlink-and-report-control#58765</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6060">acwest</a><br /><strong>Subject:</strong> 14423<br /><strong>Posted:</strong> 01 June 2010 at 11:18am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mdoubson" alt="Originally posted by mdoubson" style="vertical-align: text-bottom;" /> <strong>mdoubson wrote:</strong><br /><br /><p><font color="#000000">You can USE hyperlink if&nbsp;add properly support on your app level - e.g.</font></p><div><font size="2"></font><p><font size="2"><font color="#000000">void</font></font><font color="#000000"><font size="2"> CReportSampleView::OnReportHyperlinkClick(NMHDR * pNotifyStruct, LRESULT * </font><font size="2">/*result*/</font></font><font size="2"><font color="#000000">) </font><font color="#000000">{</font></font></p><p><font size="2"><font color="#000000">XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;</font></font></p><p><font size="2"></font><font color="#000000" size="2">if</font><font size="2"><font color="#000000"> (!pItemNotify-&gt;pRow || !pItemNotify-&gt;pColumn) </font></font><font color="#000000" size="2">return</font><font size="2"><font color="#000000">;</font></font></p><p><font size="2"></font><font color="#000000" size="2">if</font><font size="2"><font color="#000000"> (pItemNotify-&gt;nHyperlink &gt;= 0) { </font></font><font size="2"><font color="#000000">::ShellExecute(NULL, _T("open"), pItemNotify-&gt;pItem-&gt;GetCaption(pItemNotify-&gt;pColumn), NULL, NULL, SW_SHOWNORMAL); </font></font><font size="2"><font color="#000000">//like this - ::ShellExecute(NULL, _T(</font></font><font color="#000000"><font size="2">"open"</font><font size="2">), _T(</font><font size="2">"www.google.com"</font></font><font size="2"><font color="#000000">), NULL, NULL, SW_SHOWNORMAL); </font><font color="#000000">} </font><font color="#000000">}</font></font></p><font size="2"></font></div></td></tr></table><br>Is this answer related to your previous one? Do we need to modify the OnDrawCaption code, and how do I add the OnReportHyperlinkClick handler? I was looking into using the CXTPReportHyperlink class, but it appears to be incompatible with using XAML markup in the control.<br>]]>
   </description>
   <pubDate>Tue, 01 Jun 2010 11:18:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=58765&amp;title=markup-hyperlink-and-report-control#58765</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Hyperlink and Report Control : You can USE hyperlink ifadd properly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=51759&amp;title=markup-hyperlink-and-report-control#51759</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14423<br /><strong>Posted:</strong> 07 August 2009 at 9:37pm<br /><br /><P><FONT color=#000000>You can USE hyperlink if&nbsp;add properly support on your app level - e.g.</FONT></P><DIV><FONT size=2><P><FONT color=#000000>void</FONT></FONT><FONT color=#000000><FONT size=2> CReportSampleView::OnReportHyperlinkClick(NMHDR * pNotifyStruct, LRESULT * </FONT><FONT size=2>/*result*/</FONT></FONT><FONT size=2><FONT color=#000000>) </FONT><FONT color=#000000>{</FONT></P><P><FONT color=#000000>XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;</FONT></P><P></FONT><FONT color=#000000 size=2>if</FONT><FONT size=2><FONT color=#000000> (!pItemNotify-&gt;pRow || !pItemNotify-&gt;pColumn) </FONT></FONT><FONT color=#000000 size=2>return</FONT><FONT size=2><FONT color=#000000>;</FONT></P><P></FONT><FONT color=#000000 size=2>if</FONT><FONT size=2><FONT color=#000000> (pItemNotify-&gt;nHyperlink &gt;= 0) { </FONT></FONT><FONT size=2><FONT color=#000000>::ShellExecute(NULL, _T("open"), pItemNotify-&gt;pItem-&gt;GetCaption(pItemNotify-&gt;pColumn), NULL, NULL, SW_SHOWNORMAL); </FONT></FONT><FONT size=2><FONT color=#000000>//like this - ::ShellExecute(NULL, _T(</FONT></FONT><FONT color=#000000><FONT size=2>"open"</FONT><FONT size=2>), _T(</FONT><FONT size=2>"www.google.com"</FONT></FONT><FONT size=2><FONT color=#000000>), NULL, NULL, SW_SHOWNORMAL); </FONT><FONT color=#000000>} </FONT><FONT color=#000000>}</FONT></P></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 07 Aug 2009 21:37:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=51759&amp;title=markup-hyperlink-and-report-control#51759</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Hyperlink and Report Control : Use 13.1 Upgrade -   void CX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=51512&amp;title=markup-hyperlink-and-report-control#51512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14423<br /><strong>Posted:</strong> 01 August 2009 at 2:19pm<br /><br />Use 13.1 Upgrade - <DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CXTPReportRecordItem::OnDrawCaption(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pMetrics){</P><P>ASSERT(pDrawArgs-&gt;pItem == </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>);</P><P>CXTPReportPaintManager* pPaintManager = pDrawArgs-&gt;pControl-&gt;GetPaintManager();</P><P>BOOL bForceMarkUp(FALSE);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pPaintManager) bForceMarkUp = pPaintManager-&gt;m_bForceDynamicMarkupForCell;</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// SPECIAL Flag to use</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> ((pDrawArgs-&gt;pControl-&gt;IsVirtualMode() || bForceMarkUp)</P><P>&amp;&amp; pDrawArgs-&gt;pControl-&gt;GetMarkupContext() &amp;&amp; !m_pMarkupUIElement)</P><P>{</P><P>CXTPMarkupUIElement* pMarkupUIElement = XTPMarkupParseText(pDrawArgs-&gt;pControl-&gt;GetMarkupContext(), pMetrics-&gt;strText);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pMarkupUIElement)</P><P>{</P><P>CRect rcItem = pDrawArgs-&gt;rcItem;</P><P>rcItem.DeflateRect(2, 1, 2, 0);</P><P>XTPMarkupSetDefaultFont(XTPMarkupElementContext(pMarkupUIElement), (HFONT)pMetrics-&gt;pFont-&gt;GetSafeHandle(), pMetrics-&gt;clrForeground);</P><P>XTPMarkupMeasureElement(pMarkupUIElement, rcItem.Width(), INT_MAX);</P><P>XTPMarkupRenderElement(pMarkupUIElement, pDrawArgs-&gt;pDC-&gt;GetSafeHdc(), &amp;rcItem);</P><P>XTPMarkupReleaseElement(pMarkupUIElement);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><P>}</P><P>}</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_pMarkupUIElement)</P><P>{</P><P>CRect rcItem = pDrawArgs-&gt;rcItem;</P><P>rcItem.DeflateRect(2, 1, 2, 0);</P><P>XTPMarkupSetDefaultFont(XTPMarkupElementContext(m_pMarkupUIElement), (HFONT)pMetrics-&gt;pFont-&gt;GetSafeHandle(), pMetrics-&gt;clrForeground);</P><P>XTPMarkupMeasureElement(m_pMarkupUIElement, rcItem.Width(), INT_MAX);</P><P>XTPMarkupRenderElement(m_pMarkupUIElement, pDrawArgs-&gt;pDC-&gt;GetSafeHdc(), &amp;rcItem);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pPaintManager)</P><P>pPaintManager-&gt;DrawItemCaption(pDrawArgs, pMetrics);</P><P>}</P><P>}</P></FONT></DIV>]]>
   </description>
   <pubDate>Sat, 01 Aug 2009 14:19:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=51512&amp;title=markup-hyperlink-and-report-control#51512</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Hyperlink and Report Control : Please add support for Markup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=51511&amp;title=markup-hyperlink-and-report-control#51511</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4605">zitz</a><br /><strong>Subject:</strong> 14423<br /><strong>Posted:</strong> 01 August 2009 at 2:04pm<br /><br />Please add support for Markup Hyperlink to Report control, embedded links (CXTPReportHyperlink) is very poor.<br>Or add multiline hyperlinks to CXTPReportHyperlink ( several CRect m_rcHyperSpot1, CRect m_rcHyperSpot2... )<br>]]>
   </description>
   <pubDate>Sat, 01 Aug 2009 14:04:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=51511&amp;title=markup-hyperlink-and-report-control#51511</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Hyperlink and Report Control : I use Xtreme ToolkitPro v13.0.0.How...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=49525&amp;title=markup-hyperlink-and-report-control#49525</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4605">zitz</a><br /><strong>Subject:</strong> 14423<br /><strong>Posted:</strong> 01 June 2009 at 12:13am<br /><br />I use Xtreme ToolkitPro v13.0.0.<br>How add Markup Hyperlink to Report control? I add CXTPReportRecordItem, and set Murkup Text to it. How can i get OnHyperlinkClick( CXTPMarkupObject* pSender, CXTPMarkupRoutedEventArgs* pArgs );<br><table width="99%"><tr><td><pre class="BBcode"><br>pMarkupContext-&gt;AddHandler( CXTPMarkupHyperlink::m_pClickEvent,<br>CreateMarkupClassDelegate( this, &amp;CReportCtrlComm::OnHyperlinkClick ) );<br></pre></td></tr></table><br>What next?<br>]]>
   </description>
   <pubDate>Mon, 01 Jun 2009 00:13:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14423&amp;PID=49525&amp;title=markup-hyperlink-and-report-control#49525</guid>
  </item> 
 </channel>
</rss>