<?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 : CXTPControlComboBox and ListBox Tooltip</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPControlComboBox and ListBox Tooltip]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:31:25 +0000</pubDate>
  <lastBuildDate>Fri, 05 Oct 2007 09:28: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=8268</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[CXTPControlComboBox and ListBox Tooltip : 1) better solution ?2) red border...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8268&amp;PID=27003&amp;title=cxtpcontrolcombobox-and-listbox-tooltip#27003</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 8268<br /><strong>Posted:</strong> 05 October 2007 at 9:28am<br /><br />1) better solution ?<br><br>2) red border ok, but Tooltip does not work correkt on 2 pixel width between<br>2 entrys (green line).<br><br>3) can add to next Codejock version ?<br><br>4) Ok<br><br>&nbsp;&nbsp;&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Fri, 05 Oct 2007 09:28:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8268&amp;PID=27003&amp;title=cxtpcontrolcombobox-and-listbox-tooltip#27003</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlComboBox and ListBox Tooltip : Hi,  Nice solution.  May be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8268&amp;PID=26968&amp;title=cxtpcontrolcombobox-and-listbox-tooltip#26968</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8268<br /><strong>Posted:</strong> 05 October 2007 at 3:32am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Nice solution.</DIV><DIV>&nbsp;</DIV><DIV>May be only need add</DIV><DIV>DECLARE_XTP_COMMANDBAR/IMPLEMENT_XTP_COMMANDBAR for List</DIV><DIV>and instead predefined CRect(0,0,200,50), use</DIV><DIV>&nbsp;</DIV><DIV>CRect rc;<BR>GetListBoxCtrl()-&gt;GetItemRect(iSel, rc);<BR></DIV><DIV>Think also need to add Save/Load tooltips for customization. See DOPropExchange method.</DIV>]]>
   </description>
   <pubDate>Fri, 05 Oct 2007 03:32:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8268&amp;PID=26968&amp;title=cxtpcontrolcombobox-and-listbox-tooltip#26968</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlComboBox and ListBox Tooltip :  Hallo,  Found solution  class...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8268&amp;PID=26915&amp;title=cxtpcontrolcombobox-and-listbox-tooltip#26915</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 8268<br /><strong>Posted:</strong> 04 October 2007 at 6:32am<br /><br />Hallo,<br><br>Found solution<br><br>class CExControlComboBoxList : public CXTPControlComboBoxList<br>{<br>public:<br>&nbsp;&nbsp;&nbsp; void CreateListBox() { __super::CreateListBox(); };<br><br>&nbsp;&nbsp;&nbsp; virtual ~CExControlComboBoxList()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_pToolTipContext)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CMDTARGET_RELEASE(m_pToolTipContext);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; void InitTooltip(LPCTSTR lpTitle)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_ToolTipContext.ModifyToolTipStyle(TTS_NOPREFIX, 0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_ToolTipContext.ShowImage(FALSE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SetTooltipTitle(lpTitle);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pToolTipContext = &amp;m_ToolTipContext;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CMDTARGET_ADDREF(m_pToolTipContext);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; void SetTooltipTitle(LPCTSTR lpTitle)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (lpTitle &amp;&amp; *lpTitle)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_strTitle = lpTitle;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_ToolTipContext.ShowTitleAndDescription(TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_ToolTipContext.ShowTitleAndDescription(FALSE);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; virtual INT_PTR OnToolHitTest(CPoint point, TOOLINFO* pTI) const<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int iSel = GetCurSel();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (iSel &gt;= 0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString strText;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetText(iSel, strText);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TSSMap::const_iterator itr = m_mapTooltipText.find(strText);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (itr != m_mapTooltipText.end())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPToolTipContext::FillInToolInfo(pTI, m_hWnd,CRect(0,0,200,50), iSel, itr-&gt;second, m_strTitle, itr-&gt;second,NULL);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return iSel;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; void AddTooltipText(const CString&amp; strText, const CString&amp; strTooltip)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_mapTooltipText&#091;strText&#093; = strTooltip;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; CXTPToolTipContext *GetToolTipContext() {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return m_pToolTipContext;<br>&nbsp;&nbsp;&nbsp; }<br>protected:<br>&nbsp;&nbsp;&nbsp; typedef std::map&lt;CString,CString&gt; TSSMap;<br>&nbsp;&nbsp;&nbsp; TSSMap m_mapTooltipText;<br>&nbsp;&nbsp;&nbsp; CXTPToolTipContext m_ToolTipContext;<br>&nbsp;&nbsp;&nbsp; CString m_strTitle;<br>};<br><br>class CExControlComboBox : public CXTPControlComboBox<br>{<br>public:<br>&nbsp;&nbsp;&nbsp; CExControlComboBox()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_pCommandBar)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pCommandBar-&gt;InternalRelease();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pCommandBar = new CExControlComboBoxList();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetExControlList()-&gt;CreateListBox();<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; CExControlComboBoxList *GetExControlList()&nbsp;&nbsp;&nbsp; { return ((CExControlComboBoxList*)m_pCommandBar); }<br><br>&nbsp;&nbsp;&nbsp; CXTPToolTipContext *GetToolTipContext() {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetExControlList()-&gt;GetToolTipContext();<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; void InitTooltip(LPCTSTR lpTitle = NULL) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetExControlList()-&gt;InitTooltip(lpTitle);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; void AddString(const CString&amp; strText, const CString&amp; strTooltip)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetExControlList()-&gt;AddTooltipText(strText, strTooltip);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; __super::AddString(strText);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; DECLARE_XTP_CONTROL(CExControlComboBox)<br>};<br><br>IMPLEMENT_XTP_CONTROL(CExControlComboBox, CXTPControlComboBox)<br><br>And in OnCreateControl<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CExControlComboBox* pComboUrl = (CExControlComboBox*)CExControlComboBox::CreateObject();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pComboUrl-&gt;InitTooltip("Title");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pComboUrl-&gt;AddString(_T("http://www.codejock.com"), "Mein Tooltip 1");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pComboUrl-&gt;AddString(_T("ms-help://MS.VSCC/vsccCommon/html/vsccCommon_Start_Page.htm"), "Mein Tooltip 2" );<br><br><br>But some questions.<br><br>1) Better solution to store info Tooltiptext / Entry (i don't like use SetItemData)<br><br>2) Tooltip only show inside red border and wrong tooltip is show on green line position.<br><br><img src="uploads/20071004_082724_CJ_C&#111;ntrolCombo.JPG" height="80" width="327" border="0"><br><br>3) Can you add this function to new version ?<br><br>4) What can i make better inthis solution ?<br><br>&nbsp;&nbsp;&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Thu, 04 Oct 2007 06:32:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8268&amp;PID=26915&amp;title=cxtpcontrolcombobox-and-listbox-tooltip#26915</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlComboBox and ListBox Tooltip :   jimmy wrote:Hello,Is there...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8268&amp;PID=26808&amp;title=cxtpcontrolcombobox-and-listbox-tooltip#26808</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 8268<br /><strong>Posted:</strong> 02 October 2007 at 1:31pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jimmy" alt="Originally posted by jimmy" style="vertical-align: text-bottom;" /> <strong>jimmy wrote:</strong><br /><br />Hello,<BR><BR>Is there a way to set a tooltip Text for the CXTPControlComboBox ListBox ?<BR>Not a LabelTip. <BR>Like this<BR><BR><img src="uploads/20071002_123640_CJ_TT_CB_LB.JPG" border="0"><BR><BR>&nbsp; Jimmy<BR></td></tr></table><DIV>&nbsp;</DIV><DIV>Now that would be magic! Come on Oleg, we know you can do it :-)</DIV>]]>
   </description>
   <pubDate>Tue, 02 Oct 2007 13:31:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8268&amp;PID=26808&amp;title=cxtpcontrolcombobox-and-listbox-tooltip#26808</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlComboBox and ListBox Tooltip : Hello,Is there a way to set a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8268&amp;PID=26806&amp;title=cxtpcontrolcombobox-and-listbox-tooltip#26806</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 8268<br /><strong>Posted:</strong> 02 October 2007 at 12:37pm<br /><br />Hello,<br><br>Is there a way to set a tooltip Text for the CXTPControlComboBox ListBox ?<br>Not a LabelTip. <br>Like this<br><br><img src="uploads/20071002_123640_CJ_TT_CB_LB.JPG" height="80" width="130" border="0"><br><br>&nbsp; Jimmy<br>]]>
   </description>
   <pubDate>Tue, 02 Oct 2007 12:37:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8268&amp;PID=26806&amp;title=cxtpcontrolcombobox-and-listbox-tooltip#26806</guid>
  </item> 
 </channel>
</rss>