<?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 : Problem with popup toolbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Problem with popup toolbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 03:27:16 +0000</pubDate>
  <lastBuildDate>Fri, 25 May 2007 08:41:54 +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=7235</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[Problem with popup toolbar : Hi, Check Samples\CommandBars\TearOffPopups...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23245&amp;title=problem-with-popup-toolbar#23245</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7235<br /><strong>Posted:</strong> 25 May 2007 at 8:41am<br /><br /><DIV>Hi,</DIV><DIV>Check Samples\CommandBars\TearOffPopups&nbsp; - you click borders popup and it show popup toolbar.</DIV><DIV>&nbsp;</DIV><DIV>They show text because don't have associated icons. check IDB_TERNARY_PALETTE.</DIV>]]>
   </description>
   <pubDate>Fri, 25 May 2007 08:41:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23245&amp;title=problem-with-popup-toolbar#23245</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with popup toolbar : Hi,  I can&amp;#039;t do it in OnCreate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23243&amp;title=problem-with-popup-toolbar#23243</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 7235<br /><strong>Posted:</strong> 25 May 2007 at 8:22am<br /><br />Hi,<DIV>&nbsp; I can't do it in OnCreate or OnCreateControl because I have to click the toolbar,it would show the popup toolbar. Why some toolbars showing popup toolbar with text only not the bitmap images.Please help</DIV>]]>
   </description>
   <pubDate>Fri, 25 May 2007 08:22:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23243&amp;title=problem-with-popup-toolbar#23243</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with popup toolbar : Hi, its wrong place.  Create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23241&amp;title=problem-with-popup-toolbar#23241</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7235<br /><strong>Posted:</strong> 25 May 2007 at 6:21am<br /><br /><P>Hi,</P><DIV>its wrong place. </DIV><DIV>Create it in OnCreate method or better in OnCreateControl.</DIV>]]>
   </description>
   <pubDate>Fri, 25 May 2007 06:21:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23241&amp;title=problem-with-popup-toolbar#23241</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with popup toolbar : Hai,  In the same popup toolbars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23240&amp;title=problem-with-popup-toolbar#23240</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 7235<br /><strong>Posted:</strong> 25 May 2007 at 6:15am<br /><br />Hai,<DIV>&nbsp;&nbsp; In the same popup toolbars some toolbar showing only the text instead of bitmap image.Please help.</DIV>]]>
   </description>
   <pubDate>Fri, 25 May 2007 06:15:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23240&amp;title=problem-with-popup-toolbar#23240</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with popup toolbar : Hai&amp;#039;  The other function...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23239&amp;title=problem-with-popup-toolbar#23239</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 7235<br /><strong>Posted:</strong> 25 May 2007 at 5:43am<br /><br />Hai'<DIV>&nbsp;&nbsp; The other function is called like this in mainframe.cpp<FONT size=2><P>ON_COMMAND(ID_GC_MAIN_2DTERNARY,OnGC2DTernary)</P></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 25 May 2007 05:43:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23239&amp;title=problem-with-popup-toolbar#23239</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with popup toolbar : Code looks right. Think problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23238&amp;title=problem-with-popup-toolbar#23238</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7235<br /><strong>Posted:</strong> 25 May 2007 at 4:23am<br /><br />Code looks right. Think problem in something else - may be you catch some event and clear something.<DIV><BR>When this "other function" called?</DIV>]]>
   </description>
   <pubDate>Fri, 25 May 2007 04:23:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23238&amp;title=problem-with-popup-toolbar#23238</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with popup toolbar :  Hai, Please go through the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23236&amp;title=problem-with-popup-toolbar#23236</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 7235<br /><strong>Posted:</strong> 25 May 2007 at 3:24am<br /><br /><FONT color=#008000 size=2><DIV><FONT color=#000000>Hai,</FONT></DIV><DIV><FONT color=#000000>Please go through the below code. The code for bringing the popup toolbar when you click the toolbar button. My problem is when I click at the first time the popup toolbar is not popuping up.but at the second click it is coming. What is the reason?</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>In Oncreate(...)</DIV><DIV><FONT size=2>CXTPToolBar* p2DToolBar = (CXTPToolBar*)pCommandBars-&gt;Add(_T(</FONT><FONT color=#800000 size=2>"2D Graph"</FONT><FONT size=2>), xtpBarLeft);</DIV><DIV><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!p2DToolBar || !p2DToolBar-&gt;LoadToolBar(IDR_GC_TOOLBAR))</P><P>{</P><P>TRACE0(</FONT><FONT color=#800000 size=2>"Failed to create 2D Graph toolbar\n"</FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> -1;</P><P>}</P><P>p2DToolBar-&gt;EnableToolTips(TRUE);</P><P>p2DToolBar-&gt;SetIconSize(CSize(31,31)); </P><P>p2DToolBar-&gt;SetButtonSize(CSize(38,37));</P><P>p2DToolBar-&gt;GetImageManager()-&gt;SetIcons(IDB_2DGRAPH_CREATE, graph_create_buttons, _countof(graph_create_buttons), CSize(31,31), xtpImageNormal);</P><P>p2DToolBar-&gt;ShowExpandButton(FALSE);</P><DIV>Other function...</DIV><DIV></FONT>&nbsp;</DIV><DIV>// Get a pointer to the command bars object.</DIV></DIV></FONT><FONT size=2><P>CXTPCommandBars* pCommandBars = GetCommandBars();</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(pCommandBars == NULL)</P><P>{</P><P>TRACE0(</FONT><FONT color=#800000 size=2>"Failed to create command bars object.\n"</FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>; </FONT><FONT color=#008000 size=2>// fail to create</P></FONT><FONT size=2><P>}</P><P>CXTPControl* pControlIcons = pCommandBars-&gt;FindControl(xtpControlButton, ID_GC_MAIN_2DTERNARY, TRUE, FALSE);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pControlIcons)</P><P>{</P><P>CXTPControlPopup* pPopup = (CXTPControlPopup*)pControlIcons-&gt;GetControls()-&gt;SetControlType(pControlIcons, xtpControlButtonPopup);</P><P>pPopup-&gt;SetFlags(xtpFlagManualUpdate);</P><P>CXTPPopupToolBar* pPopupBar = CXTPPopupToolBar::CreatePopupToolBar(GetCommandBars());</P><P>pPopupBar-&gt;LoadToolBar(IDR_PALETTE_TERNARY); </P><P>pPopupBar-&gt;SetIconSize(CSize(33,33));</P><P>pPopupBar-&gt;SetButtonSize(CSize(40,39));</P><P>pPopupBar-&gt;GetImageManager()-&gt;SetIcons(IDB_TERNARY_PALETTE, graph_create_ternary_plot_buttons, _countof(graph_create_ternary_plot_buttons), CSize(33,33), xtpImageNormal);</P><P>pPopupBar-&gt;SetWidth(80);</P><P>pPopup-&gt;SetCommandBar(pPopupBar);</P><P>pPopupBar-&gt;InternalRelease(); </P><P>}</P></FONT>]]>
   </description>
   <pubDate>Fri, 25 May 2007 03:24:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7235&amp;PID=23236&amp;title=problem-with-popup-toolbar#23236</guid>
  </item> 
 </channel>
</rss>