<?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 : Custom tooltip for VirtualMode Report</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Custom tooltip for VirtualMode Report]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 18:34:59 +0000</pubDate>
  <lastBuildDate>Thu, 01 Oct 2009 17:00:09 +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=13896</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[Custom tooltip for VirtualMode Report : No, they did. There is a problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=53588&amp;title=custom-tooltip-for-virtualmode-report#53588</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13896<br /><strong>Posted:</strong> 01 October 2009 at 5:00pm<br /><br />No, they did. There is a problem with tooltip cache - sometimes it show old tooltip string if you move mouse too fast. Need to move mouse in the point where there is no tooltip and move back to proper item - now it will works. <DIV>I also have same problem in&nbsp;some NON VIRTUAL MODE project where statusbar always show proper text but tooltip show old value:</DIV><FONT size=2><P>((CFrameWnd*) AfxGetMainWnd())-&gt;SetMessageText(s); --- WORKS ALWAYS</P><P>SetTooltip(s); --- NOT ALWAYS!</P><DIV>so this tooltip problem is not related to virtual mode!</DIV><DIV></DIV><P>Btw - m_bForceShowTooltip flag have another purpose - show tooltip in the case item text is fit in the item rectangle and usual criteria to show tooltip prevent it.</P><DIV>But I checked again my virtual mode case:</DIV><DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CVirtualListView::OnReportNeedTooltip(NMHDR* pNotifyStruct, LRESULT * </FONT><FONT color=#008000 size=2>/*result*/</FONT><FONT size=2>) {</P><P>XTP_NM_REPORTTOOLTIPINFO* pItemNotify = (XTP_NM_REPORTTOOLTIPINFO*) pNotifyStruct;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!pItemNotify-&gt;pRow || !pItemNotify-&gt;pItem) </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><P>CString s; s.Format(_T(</FONT><FONT color=#a31515 size=2>"Custom Tooltip text %d"</FONT><FONT size=2>), rand() % 100);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (GetReportCtrl().IsIconView()) {</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pItemNotify-&gt;pItem-&gt;GetIndex() == GetReportCtrl().m_iIconViewColumn)</P><P>pItemNotify-&gt;pItem-&gt;SetTooltip(s); }</P><P></FONT><FONT color=#0000ff size=2>else </FONT><FONT size=2>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pItemNotify-&gt;pItem-&gt;GetIndex() == 4)</P><P>pItemNotify-&gt;pItem-&gt;SetTooltip(s); }</P><P>}</P><DIV></DIV>and it works well - no missing or wrong tooltip strings</FONT></DIV></FONT>]]>
   </description>
   <pubDate>Thu, 01 Oct 2009 17:00:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=53588&amp;title=custom-tooltip-for-virtualmode-report#53588</guid>
  </item> 
  <item>
   <title><![CDATA[Custom tooltip for VirtualMode Report : Mark, this still doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=53586&amp;title=custom-tooltip-for-virtualmode-report#53586</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 13896<br /><strong>Posted:</strong> 01 October 2009 at 4:45pm<br /><br />Mark, this still doesn't appear to be working as expected in the v13.2 beta.<br><br>I'm setting <br><br>GetReportControl().GetPaintManager()-&gt;m_bForceShowTooltip = TRUE;<br><br>... but the tooltip still exhibits the problem behavior I described in my previous post.<br><br>Maybe your changes haven't yet made it into the v13.2 beta?<br>]]>
   </description>
   <pubDate>Thu, 01 Oct 2009 16:45:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=53586&amp;title=custom-tooltip-for-virtualmode-report#53586</guid>
  </item> 
  <item>
   <title><![CDATA[Custom tooltip for VirtualMode Report : New feature in VirtualMode - multiline...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52867&amp;title=custom-tooltip-for-virtualmode-report#52867</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13896<br /><strong>Posted:</strong> 08 September 2009 at 5:26pm<br /><br />New feature in VirtualMode - multiline items - see updated sample - <a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/EditVirtualListIc&#111;nStatic.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar</A><BR>]]>
   </description>
   <pubDate>Tue, 08 Sep 2009 17:26:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52867&amp;title=custom-tooltip-for-virtualmode-report#52867</guid>
  </item> 
  <item>
   <title><![CDATA[Custom tooltip for VirtualMode Report : &amp;gt; Thanks for catch And thank...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52810&amp;title=custom-tooltip-for-virtualmode-report#52810</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 13896<br /><strong>Posted:</strong> 05 September 2009 at 8:38am<br /><br /><div><font size="2">&gt; Thanks for catch</font></div><div>&nbsp;<br>And thank you for getting the problem resolved so quickly.<br><br>You folks provide the best support in the business.<br></div> ]]>
   </description>
   <pubDate>Sat, 05 Sep 2009 08:38:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52810&amp;title=custom-tooltip-for-virtualmode-report#52810</guid>
  </item> 
  <item>
   <title><![CDATA[Custom tooltip for VirtualMode Report : Confirmed - It work for any cases...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52791&amp;title=custom-tooltip-for-virtualmode-report#52791</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13896<br /><strong>Posted:</strong> 04 September 2009 at 5:53pm<br /><br /><P>Confirmed - It work for any cases after I add flag&nbsp;</P><DIV><FONT size=2>CXTPReportPaintManager::</FONT><FONT size=2>m_bForceShowTooltip (default&nbsp;= FALSE) </FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>same for OCX as&nbsp;</FONT><FONT size=2>PaintManager.<FONT size=2>ForceShowTooltip = True</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thanks for catch</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>You can get fresh source <a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportC&#111;ntrolMFCUpdated.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar</A>&nbsp;and rebuild your app&nbsp;</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>or get fresh beta-ocx <a href="https://forum.codejock.com/uploads/BetaOCX/ReportC&#111;ntrolBeta13-2.rar" target="_blank">https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta13-2.rar</A>&nbsp;and use same effect in VB test app</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 04 Sep 2009 17:53:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52791&amp;title=custom-tooltip-for-virtualmode-report#52791</guid>
  </item> 
  <item>
   <title><![CDATA[Custom tooltip for VirtualMode Report : It works with Notification respondbut...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52790&amp;title=custom-tooltip-for-virtualmode-report#52790</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13896<br /><strong>Posted:</strong> 04 September 2009 at 5:34pm<br /><br />It works with Notification respond&nbsp;but in same logical conditions - small column width - I can see for&nbsp;one given&nbsp;column my text "AAA" <FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CVirtualListView::OnReportNeedTooltip(NMHDR* pNotifyStruct, LRESULT * </FONT><FONT color=#008000 size=2>/*result*/</FONT><FONT size=2>) {</P><P>XTP_NM_REPORTTOOLTIPINFO* pItemNotify = (XTP_NM_REPORTTOOLTIPINFO*) pNotifyStruct;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!pItemNotify-&gt;pRow || !pItemNotify-&gt;pItem)</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pItemNotify-&gt;pItem-&gt;GetIndex() == 4)</P><P>pItemNotify-&gt;pItem-&gt;SetTooltip(</FONT><FONT color=#a31515 size=2>"AAA"</FONT><FONT size=2>);</P><P>TRACE(_T(</FONT><FONT color=#a31515 size=2>"\nRow=%d Index=%d\n"</FONT><FONT size=2>), pItemNotify-&gt;pRow-&gt;GetIndex(), pItemNotify-&gt;pItem-&gt;GetIndex());</P><P>}</P><DIV></DIV><P>So&nbsp;we need to force show tooltip if app pass it without checking cell width for external (notification-based) text passed?</P></FONT><FONT size=2>Btw - in Calendar control I have special flag to force show tooltip</FONT> ]]>
   </description>
   <pubDate>Fri, 04 Sep 2009 17:34:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52790&amp;title=custom-tooltip-for-virtualmode-report#52790</guid>
  </item> 
  <item>
   <title><![CDATA[Custom tooltip for VirtualMode Report : I don&amp;#039;t use this function...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52789&amp;title=custom-tooltip-for-virtualmode-report#52789</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13896<br /><strong>Posted:</strong> 04 September 2009 at 5:30pm<br /><br />I don't use this function here - <DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/EditVirtualListIc&#111;nStatic.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar</A></DIV><DIV>&nbsp;</DIV><DIV>and I can see tolltip for any cells if cell width is not enough</DIV><DIV>&nbsp;</DIV><DIV>Now I updated it and you can see Custom Tooltip for column 5 items for any width of this column</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 04 Sep 2009 17:30:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52789&amp;title=custom-tooltip-for-virtualmode-report#52789</guid>
  </item> 
  <item>
   <title><![CDATA[Custom tooltip for VirtualMode Report : Mark, there appears to be something...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52787&amp;title=custom-tooltip-for-virtualmode-report#52787</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 13896<br /><strong>Posted:</strong> 04 September 2009 at 5:22pm<br /><br />Mark, there appears to be something wrong with this functionality.<br><br>I'm running XTP v13.1.0 (latest public release at time of this writing), and there appears that the tooltips are not painted correctly when moving from one report record to another.<br><br>To make sure my app was not at fault somehow, I modified CodeJock sample entitled "VirtualList". I added the ON_NOTIFY macro for message <font size="2" color="#0000ff"><font color="#000000">XTP_NM_REPORT_GETTOOLTIPINFO</font></font>, along with the following method:<br><br>void CVirtualListView::OnReportNeedTooltip(NMHDR* pNotifyStruct, LRESULT * /*result*/)<br>{<br>&nbsp;&nbsp;&nbsp; XTP_NM_REPORTTOOLTIPINFO* pItemNotify = (XTP_NM_REPORTTOOLTIPINFO*) pNotifyStruct;<br><br>&nbsp;&nbsp;&nbsp; if (!pItemNotify-&gt;pRow || !pItemNotify-&gt;pItem)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br><br>&nbsp;&nbsp;&nbsp; CString sFormat;<br>&nbsp;&nbsp;&nbsp; sFormat.Format(_T("%d, %d"),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemNotify-&gt;pRow-&gt;GetIndex(),&nbsp;&nbsp;&nbsp; //this is row #<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemNotify-&gt;pItem-&gt;GetIndex());&nbsp; //this is column #<br><br>&nbsp;&nbsp;&nbsp; pItemNotify-&gt;pItem-&gt;SetTooltip(sFormat);<br>}<br><br>Now compile and run the sample, moving your mouse over various rows and columns. You'll quickly see that the tooltip is not showing the correct row and item index values. What's interesting here is that the values ARE being assigned correctly - the tooltip just doesn't show them correctly for some period of time.<br><br>In other words, using TRACE shows the *correct* values in the debug output window, but the tooltip still does not paint the correct text!<br><br>]]>
   </description>
   <pubDate>Fri, 04 Sep 2009 17:22:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=52787&amp;title=custom-tooltip-for-virtualmode-report#52787</guid>
  </item> 
  <item>
   <title><![CDATA[Custom tooltip for VirtualMode Report :   You can use this:  afx_msg...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=47466&amp;title=custom-tooltip-for-virtualmode-report#47466</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13896<br /><strong>Posted:</strong> 01 April 2009 at 10:59pm<br /><br /><FONT size=2><P></FONT><FONT color=#0000ff size=2></P><DIV><FONT color=#000000>You can use this:</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>afx_msg void OnReportNeedTooltip(NMHDR * pNotifyStruct, LRESULT * result);<BR><BR>ON_NOTIFY(XTP_NM_REPORT_GETTOOLTIPINFO, XTP_ID_REPORT_CONTROL, OnReportNeedTooltip)<BR><BR>void CVirtualListView::OnReportNeedTooltip(NMHDR* pNotifyStruct, LRESULT * /*result*/)<BR>{<BR>XTP_NM_REPORTTOOLTIPINFO* pItemNotify = (XTP_NM_REPORTTOOLTIPINFO*) pNotifyStruct;<BR><BR>if (!pItemNotify-&gt;pRow || !pItemNotify-&gt;pItem)<BR>return;<BR><BR>TRACE(_T("\nRow=%d Index=%d\n"), <BR>pItemNotify-&gt;pRow-&gt;GetIndex(),&nbsp;&nbsp;&nbsp; //this is row #<BR>pItemNotify-&gt;pItem-&gt;GetIndex());&nbsp; //this is column #</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><DIV><FONT color=#000000>//e.g. if<FONT size=2> (pItemNotify-&gt;pItem-&gt;GetIndex() == 4) pItemNotify-&gt;pItem-&gt;SetTooltip(</FONT><FONT size=2>"AAA"</FONT><FONT size=2>);</DIV></FONT>}<BR></FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV></FONT><FONT size=2>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Wed, 01 Apr 2009 22:59:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13896&amp;PID=47466&amp;title=custom-tooltip-for-virtualmode-report#47466</guid>
  </item> 
 </channel>
</rss>