<?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 : Call CXTPControlGallery from abutton</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Call CXTPControlGallery from abutton]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 23:30:13 +0000</pubDate>
  <lastBuildDate>Wed, 12 Mar 2008 02:10:18 +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=9809</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[Call CXTPControlGallery from abutton : Hi, You need add office2007 bitmaps...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32168&amp;title=call-cxtpcontrolgallery-from-abutton#32168</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9809<br /><strong>Posted:</strong> 12 March 2008 at 2:10am<br /><br /><P>Hi,</P><DIV>You need add office2007 bitmaps to your&nbsp; exe.</DIV><DIV><BR>#include "Styles\Office2007Blue\Office2007Blue.rc"<BR></DIV>]]>
   </description>
   <pubDate>Wed, 12 Mar 2008 02:10:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32168&amp;title=call-cxtpcontrolgallery-from-abutton#32168</guid>
  </item> 
  <item>
   <title><![CDATA[Call CXTPControlGallery from abutton : Using xtpThemeOffice2007 instead...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32142&amp;title=call-cxtpcontrolgallery-from-abutton#32142</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 9809<br /><strong>Posted:</strong> 11 March 2008 at 8:50am<br /><br />Using <FONT size=2>xtpThemeOffice2007 instead of <FONT size=2>xtpThemeOffice2003 throws an assertion in <FONT size=2>ASSERT(pImageArrowGlyphs);</FONT>&nbsp;when TrackPopupMenu is called.<DIV></DIV><DIV></DIV>-cpede</FONT></FONT>]]>
   </description>
   <pubDate>Tue, 11 Mar 2008 08:50:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32142&amp;title=call-cxtpcontrolgallery-from-abutton#32142</guid>
  </item> 
  <item>
   <title><![CDATA[Call CXTPControlGallery from abutton : Yes, it does the focus and selection....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32140&amp;title=call-cxtpcontrolgallery-from-abutton#32140</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 9809<br /><strong>Posted:</strong> 11 March 2008 at 8:12am<br /><br />Yes, it does the focus and selection. But if the item specified is not visible at startup, the control does not scroll into position.<DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono" color=#0033cc>pGallery-&gt;SetResizable();<BR>pGallery-&gt;SetItemsMargin(0, 1, 0, 1);<BR>pGallery-&gt;ShowLabels(FALSE);<BR>pGallery-&gt;ShowBorders(TRUE);<BR>pGallery-&gt;SetItems(pItems);<BR>pPopupBar-&gt;GetControls()-&gt;Add(pGallery);<BR>pGallery-&gt;SetSelectedItem(5);<BR>pGallery-&gt;EnsureVisible(5);<BR>UINT ret = pCommandBars-&gt;TrackPopupMenu(pPopupBar,<BR>&nbsp;TPM_NONOTIFY|TPM_RETURNCMD|TPM_LEFTALIGN|TPM_RIGHTBUTTON,<BR>&nbsp;point.x,point.y,pNode);</FONT></DIV></FONT>]]>
   </description>
   <pubDate>Tue, 11 Mar 2008 08:12:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32140&amp;title=call-cxtpcontrolgallery-from-abutton#32140</guid>
  </item> 
  <item>
   <title><![CDATA[Call CXTPControlGallery from abutton : Hi, Do you call EnsureVisible...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32129&amp;title=call-cxtpcontrolgallery-from-abutton#32129</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9809<br /><strong>Posted:</strong> 11 March 2008 at 6:41am<br /><br />Hi,<DIV>Do you call EnsureVisible&nbsp; after pPopupBar-&gt;GetControls()-&gt;Add(pGallery); line ?</DIV>]]>
   </description>
   <pubDate>Tue, 11 Mar 2008 06:41:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32129&amp;title=call-cxtpcontrolgallery-from-abutton#32129</guid>
  </item> 
  <item>
   <title><![CDATA[Call CXTPControlGallery from abutton : Great it works!  One small issue,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32110&amp;title=call-cxtpcontrolgallery-from-abutton#32110</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 9809<br /><strong>Posted:</strong> 10 March 2008 at 5:43pm<br /><br />Great it works!<DIV>&nbsp;</DIV><DIV>One small issue, - how do I pre-select and scroll to a pre-selected item, before calling the TrackPopupMenu ?</DIV><DIV>&nbsp;</DIV><DIV>It seems that SetSelectedItem works, but EnsureVisible is not working because of a missing GetParent ?</DIV><DIV>&nbsp;</DIV><DIV>-cpede</DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 17:43:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32110&amp;title=call-cxtpcontrolgallery-from-abutton#32110</guid>
  </item> 
  <item>
   <title><![CDATA[Call CXTPControlGallery from abutton : Hi, You don&amp;#039;t have CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32036&amp;title=call-cxtpcontrolgallery-from-abutton#32036</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9809<br /><strong>Posted:</strong> 08 March 2008 at 6:52am<br /><br /><DIV>Hi,</DIV><DIV>You don't have CommandBars at all? </DIV><DIV>here sample for this case:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>void CDialogSampleDlg::OnButton1() <BR>{<BR>&nbsp;CXTPCommandBars* pCommandBars = (CXTPCommandBars*)CXTPCommandBars::CreateObject();<BR>&nbsp;pCommandBars-&gt;SetSite(this);<BR>&nbsp;pCommandBars-&gt;SetTheme(xtpThemeOffice2003);</DIV><DIV>&nbsp;CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(pCommandBars);</DIV><DIV>&nbsp;CPoint point;<BR>&nbsp;GetCursorPos(&amp;point);</DIV><DIV>&nbsp;CXTPControlGalleryItems* pItems = CXTPControlGalleryItems::CreateItems(pCommandBars, 100);<BR>&nbsp;pItems-&gt;SetItemSize(CSize(0, 20));</DIV><DIV>&nbsp;CXTPControlGalleryItem* pItem = pItems-&gt;AddLabel(0);<BR>&nbsp;pItem-&gt;SetCaption(_T("Lines"));</DIV><DIV>&nbsp;pItems-&gt;AddItem("Item");</DIV><DIV><BR>&nbsp;CXTPControlGallery* pGallery = new CXTPControlGallery();<BR>&nbsp;pGallery-&gt;SetItems(pItems);</DIV><DIV>&nbsp;pPopupBar-&gt;GetControls()-&gt;Add(pGallery);</DIV><DIV>&nbsp;pCommandBars-&gt;TrackPopupMenu(pPopupBar, TPM_NONOTIFY, point.x, point.y, this);</DIV><DIV>&nbsp;<BR>&nbsp;<BR>&nbsp;pPopupBar-&gt;InternalRelease();<BR>&nbsp;pCommandBars-&gt;InternalRelease();<BR>&nbsp;<BR>}<BR></DIV>]]>
   </description>
   <pubDate>Sat, 08 Mar 2008 06:52:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32036&amp;title=call-cxtpcontrolgallery-from-abutton#32036</guid>
  </item> 
  <item>
   <title><![CDATA[Call CXTPControlGallery from abutton : Maybe you could give me a little...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32026&amp;title=call-cxtpcontrolgallery-from-abutton#32026</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 9809<br /><strong>Posted:</strong> 07 March 2008 at 3:43pm<br /><br />Maybe you could give me a little more insight in how to do it.<DIV></DIV>I cannot create the <DIV><FONT size=2>CXTPControlGalleryItems::CreateItems(GetCommandBars()...</DIV><DIV>because I don have access to GetCommandBars ?</DIV><DIV>&nbsp;</DIV><DIV>And how to attach it to a TrackPopupMenu ?</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>&nbsp;</DIV><DIV>-cpede</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 07 Mar 2008 15:43:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32026&amp;title=call-cxtpcontrolgallery-from-abutton#32026</guid>
  </item> 
  <item>
   <title><![CDATA[Call CXTPControlGallery from abutton : Hi, its just4 additional lines...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32015&amp;title=call-cxtpcontrolgallery-from-abutton#32015</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9809<br /><strong>Posted:</strong> 07 March 2008 at 3:11pm<br /><br /><DIV>Hi,</DIV><DIV>its just&nbsp;4 additional lines to create CXTPPopupBar, add gallery to it and run it with CXTPCommandBars::TrackPopupMenu.</DIV>]]>
   </description>
   <pubDate>Fri, 07 Mar 2008 15:11:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=32015&amp;title=call-cxtpcontrolgallery-from-abutton#32015</guid>
  </item> 
  <item>
   <title><![CDATA[Call CXTPControlGallery from abutton : Is it possible to create and show...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=31969&amp;title=call-cxtpcontrolgallery-from-abutton#31969</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 9809<br /><strong>Posted:</strong> 06 March 2008 at 10:28am<br /><br />Is it possible to create and show a <FONT size=2>CXTPControlGallery directly from a button, or e.g. from a verb link in a property editor? It would be great if it is possible to just launch this control without the need of a menu or ribbon.<DIV></DIV><DIV></DIV>-cpede</FONT>]]>
   </description>
   <pubDate>Thu, 06 Mar 2008 10:28:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9809&amp;PID=31969&amp;title=call-cxtpcontrolgallery-from-abutton#31969</guid>
  </item> 
 </channel>
</rss>