<?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 : Inconsistent Tooltips for Themed Property Grid</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Inconsistent Tooltips for Themed Property Grid]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 18:09:36 +0000</pubDate>
  <lastBuildDate>Wed, 24 May 2023 12:40:55 +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=23174</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[Inconsistent Tooltips for Themed Property Grid : I had the same problem and since...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=78700&amp;title=inconsistent-tooltips-for-themed-property-grid#78700</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9461">Pesci7</a><br /><strong>Subject:</strong> 23174<br /><strong>Posted:</strong> 24 May 2023 at 12:40pm<br /><br /><div>I had the same problem and since I was very annoyed I took a look at the code and surprisingly found that theme tooltip support was already in place (CXTPPropertyGridToolTip).</div><div><br></div><div><span ="hwtze"="" lang="en"><span ="jcahz="" chmk0b"=""><span ="rynqvb"="">What was missing was drawing tooltips using themes.</span></span> <span ="jcahz="" chmk0b"=""><span ="rynqvb"="">I then took the code from CXTPGridControl which has the tooltips that work correctly (CXTPGridTip) and copied and adapted the code from the OnPaint method.</span></span></span></div><div><span ="hwtze"="" lang="en"><span ="jcahz="" chmk0b"=""><span ="rynqvb"=""><br></span></span></span></div><div><span ="hwtze"="" lang="en"><span ="jcahz="" chmk0b"=""><span ="rynqvb"=""></span></span></span><span ="hwtze"="" lang="en"><span ="jcahz="" chmk0b"=""><span ="rynqvb"="">For simplicity I report below all the OnPaint code even if the changes are few</span></span></span></div><div><span ="hwtze"="" lang="en"><span ="jcahz="" chmk0b"=""><span ="rynqvb"=""><br></span></span></span></div><div><span ="hwtze"="" lang="en"><span ="jcahz="" chmk0b"=""><span ="rynqvb"=""></span></span></span><table width="99%"><tr><td><pre class="BBcode"></div><div>void CXTPPropertyGridToolTip::OnPaint()<br>{<br>&nbsp;&nbsp; &nbsp;CPaintDC dc(this);<br>&nbsp;&nbsp; &nbsp;CXTPClientRect rc(this);<br><br>&nbsp;&nbsp; &nbsp;dc.SetBkMode(TRANSPARENT);<br><br>&nbsp;&nbsp; &nbsp;BOOL bToolipDrawn = FALSE;<br>&nbsp;&nbsp; &nbsp;CWnd* pToolTip = m_pGrid-&gt;GetPropertyGrid()-&gt;GetToolTipContext()-&gt;CreateToolTip(m_pGrid);<br>&nbsp;&nbsp; &nbsp;if (NULL != pToolTip)<br>&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; pToolTip-&gt;SetWindowPos(&amp;CWnd::wndTop, 0, 0, rc.Width(), rc.Height(),<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; SWP_HIDEWINDOW | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOOWNERZORDER<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; | SWP_NOREDRAW | SWP_NOMOVE | SWP_NOCOPYBITS);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; bToolipDrawn =<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (TRUE<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;== pToolTip-&gt;SendMessage(WM_PRINTCLIENT, reinterpret_cast&lt;WPARAM&gt;(dc.GetSafeHdc()),<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; PRF_CLIENT | PRF_ERASEBKGND | PRF_CHILDREN | PRF_OWNED));<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; pToolTip-&gt;DestroyWindow();<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; delete pToolTip;<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;if (!bToolipDrawn)<br>&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; m_pGrid-&gt;GetPropertyGrid()-&gt;GetToolTipContext()-&gt;DrawBackground(&amp;dc, rc);<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;if ((m_pGrid-&gt;GetExStyle() &amp; WS_EX_RTLREADING)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; || (m_pGrid-&gt;GetExStyle() &amp; WS_EX_LAYOUTRTL))<br>&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; dc.SetTextAlign(TA_RTLREADING);<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;CString strText;<br>&nbsp;&nbsp; &nbsp;GetWindowText(strText);<br><br>&nbsp;&nbsp; &nbsp;CXTPFontDC font(&amp;dc, &amp;m_xtpFont);<br>&nbsp;&nbsp; &nbsp;CRect rcText(rc);<br>&nbsp;&nbsp; &nbsp;rcText.left += XTP_DPI_X(4);<br><br>&nbsp;&nbsp; &nbsp;dc.DrawText(strText, rcText, DT_SINGLELINE | DT_VCENTER | DT_NOPREFIX);<br>}<br></pre></td></tr></table></div><div><span ="hwtze"="" lang="en"><span ="jcahz="" chmk0b"=""><span ="rynqvb"=""><br></span></span></span></div><div><span ="hwtze"="" lang="en"><span ="jcahz="" chmk0b"=""><span ="rynqvb"=""><img src="uploads/9461/Tooltips.png" height="127" width="526" border="0" /><br></span></span></span></div><div><span ="hwtze"="" lang="en"><span ="jcahz="" chmk0b"=""><span ="rynqvb"=""><br></span></span></span></div><div><span ="hwtze"="" lang="en"><span ="jcahz="" chmk0b"=""><span ="rynqvb"="">Not extensively tested but it seems ok to me.</span></span></span></div>]]>
   </description>
   <pubDate>Wed, 24 May 2023 12:40:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=78700&amp;title=inconsistent-tooltips-for-themed-property-grid#78700</guid>
  </item> 
  <item>
   <title><![CDATA[Inconsistent Tooltips for Themed Property Grid : Still not fixed in v19.3.0.Come...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=78023&amp;title=inconsistent-tooltips-for-themed-property-grid#78023</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 23174<br /><strong>Posted:</strong> 18 January 2021 at 8:28am<br /><br /><div>Still not fixed in v19.3.0.</div><div><br></div><div>Come on....</div><div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Mon, 18 Jan 2021 08:28:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=78023&amp;title=inconsistent-tooltips-for-themed-property-grid#78023</guid>
  </item> 
  <item>
   <title><![CDATA[Inconsistent Tooltips for Themed Property Grid : Still not fixed in v18.2.0.-cpede...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=76311&amp;title=inconsistent-tooltips-for-themed-property-grid#76311</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 23174<br /><strong>Posted:</strong> 22 November 2017 at 3:53am<br /><br />Still not fixed in v18.2.0.<div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Wed, 22 Nov 2017 03:53:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=76311&amp;title=inconsistent-tooltips-for-themed-property-grid#76311</guid>
  </item> 
  <item>
   <title><![CDATA[Inconsistent Tooltips for Themed Property Grid : Aghhh, you did not fix this in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=75984&amp;title=inconsistent-tooltips-for-themed-property-grid#75984</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 23174<br /><strong>Posted:</strong> 02 August 2017 at 5:45am<br /><br />Aghhh, you did not fix this in v1801.<div><br></div><div>Very easy to reproduce in the Property Grid Sample.</div><div><br></div><div>It seems, that the tool tips for the items in the property editor is <b>NOT </b>following the theme.</div><div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Wed, 02 Aug 2017 05:45:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=75984&amp;title=inconsistent-tooltips-for-themed-property-grid#75984</guid>
  </item> 
  <item>
   <title><![CDATA[Inconsistent Tooltips for Themed Property Grid : Except it uses the &amp;#034;old fashion&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=75436&amp;title=inconsistent-tooltips-for-themed-property-grid#75436</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 23174<br /><strong>Posted:</strong> 09 December 2016 at 2:32pm<br /><br />Except it uses the "old fashion" yellow background color, which the themed tooltips are not using anymore.<div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Fri, 09 Dec 2016 14:32:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=75436&amp;title=inconsistent-tooltips-for-themed-property-grid#75436</guid>
  </item> 
  <item>
   <title><![CDATA[Inconsistent Tooltips for Themed Property Grid :  Hi cpede,Actually in the second...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=75435&amp;title=inconsistent-tooltips-for-themed-property-grid#75435</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9108">vkozlov</a><br /><strong>Subject:</strong> 23174<br /><strong>Posted:</strong> 09 December 2016 at 9:33am<br /><br />Hi cpede,<br>Actually in the second case you see the whole value of grid item because the value is partially hidden. It is drawn exactly like it would be drawn if the place was enough.<br>]]>
   </description>
   <pubDate>Fri, 09 Dec 2016 09:33:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=75435&amp;title=inconsistent-tooltips-for-themed-property-grid#75435</guid>
  </item> 
  <item>
   <title><![CDATA[Inconsistent Tooltips for Themed Property Grid : Hi cpede, we&amp;#039;ll definitely...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=75263&amp;title=inconsistent-tooltips-for-themed-property-grid#75263</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 23174<br /><strong>Posted:</strong> 31 October 2016 at 9:39pm<br /><br />Hi cpede, we'll definitely take of the issue and will let you know once it's resolved.<div>Regards,</div><div>&nbsp; Alexander</div>]]>
   </description>
   <pubDate>Mon, 31 Oct 2016 21:39:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=75263&amp;title=inconsistent-tooltips-for-themed-property-grid#75263</guid>
  </item> 
  <item>
   <title><![CDATA[Inconsistent Tooltips for Themed Property Grid : The Tooltip Theme for the items...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=75261&amp;title=inconsistent-tooltips-for-themed-property-grid#75261</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 23174<br /><strong>Posted:</strong> 31 October 2016 at 5:39am<br /><br />The Tooltip Theme for the items does not seem to follow the general Theme for the Property Grid. Using the Office 2013 Theme shows two different tooltip "look" for the section headers, and for the items?<div><br></div><div><img src="uploads/686/XTToolkit_17.30_Property_Grid_Tooltips.png" height="311" width="705" border="0" /><br></div><div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Mon, 31 Oct 2016 05:39:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23174&amp;PID=75261&amp;title=inconsistent-tooltips-for-themed-property-grid#75261</guid>
  </item> 
 </channel>
</rss>