<?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 : Tooltip following mouse cursor</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Tooltip following mouse cursor]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 07 Jun 2026 11:26:01 +0000</pubDate>
  <lastBuildDate>Mon, 28 Jul 2008 20:46:08 +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=11607</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[Tooltip following mouse cursor : Hi,  Are there plans to make this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11607&amp;PID=39014&amp;title=tooltip-following-mouse-cursor#39014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=854">Dmitry</a><br /><strong>Subject:</strong> 11607<br /><strong>Posted:</strong> 28 July 2008 at 8:46pm<br /><br />Hi,<br /><br />Are there plans to make this functionality available? And if so, when?<br /><br />Regards,<br />Dmitry]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 20:46:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11607&amp;PID=39014&amp;title=tooltip-following-mouse-cursor#39014</guid>
  </item> 
  <item>
   <title><![CDATA[Tooltip following mouse cursor : Hello,  Afraid, no. CXTPToolTipContext...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11607&amp;PID=38955&amp;title=tooltip-following-mouse-cursor#38955</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11607<br /><strong>Posted:</strong> 28 July 2008 at 2:08am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Afraid, no. CXTPToolTipContext&nbsp; currently works only with OnToolHitTest.</DIV>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 02:08:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11607&amp;PID=38955&amp;title=tooltip-following-mouse-cursor#38955</guid>
  </item> 
  <item>
   <title><![CDATA[Tooltip following mouse cursor : Hi,  In MFC, it possible to create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11607&amp;PID=38953&amp;title=tooltip-following-mouse-cursor#38953</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=854">Dmitry</a><br /><strong>Subject:</strong> 11607<br /><strong>Posted:</strong> 27 July 2008 at 9:28pm<br /><br />Hi,<br /><br />In MFC, it possible to create a CToolTipCtrl tooltip in a CView that follows the mouse cursor around. The tooltip is activated using Activate() and its text is updated using UpdateTipText.<br /><br />For example, add the following changes to the Scribble sample:<br /><font face="Courier New, Courier, mono"><br />static CToolTipCtrl * tooltip = 0;<br />void CScribbleView::OnLButtonUp(UINT, CPoint point)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (tooltip)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tooltip -&gt;Activate (false);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;delete tooltip;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tooltip = 0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tooltip = new CToolTipCtrl ();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tooltip -&gt; Create (this);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tooltip -&gt; AddTool (this);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tooltip -&gt; Activate (true);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tooltip -&gt; UpdateTipText ("Tooltip", this);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Mouse button up is interesting in the Scribble application<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br /><br />void CScribbleView::OnMouseMove(UINT, CPoint point)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (tooltip)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CString toolText;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;toolText .Format ("Mouse: (%d, %d)", point.x, point.y);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tooltip -&gt; UpdateTipText (toolText, this);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Mouse movement is interesting in the Scribble application<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br /><br />BOOL CScribbleView::PreTranslateMessage (MSG * pMsg)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (tooltip)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tooltip -&gt; RelayEvent (pMsg);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return __super :: PreTranslateMessage (pMsg);<br />}<br /></font><br /><br />Run the application. Click to turn the tooltip on or off, and move the mouse &#8211; it will show mouse coordinates just under the cursor, as it moves:<br />&nbsp;&nbsp;&nbsp;&nbsp;<img src="uploads/20080727_212407_TooltipFollowsM.PNG" border="0"><br /><br />Is there a way to create a similar scenario in XTP, using other styles of tooltip (RTF, Office, etc)? All the existing examples of CXTPToolTipContext currently use OnToolHitTest, but not Activate+UpdateTipText.<br /><br /><br />Thanks,<br />Dmitry]]>
   </description>
   <pubDate>Sun, 27 Jul 2008 21:28:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11607&amp;PID=38953&amp;title=tooltip-following-mouse-cursor#38953</guid>
  </item> 
 </channel>
</rss>