<?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 : Dynamic toolbars questi&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Dynamic toolbars questi&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 09:26:12 +0000</pubDate>
  <lastBuildDate>Thu, 15 Dec 2005 08:11: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=3410</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[Dynamic toolbars questi&#111;n : yes, why not. but instead CXTP...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3410&amp;PID=10213&amp;title=dynamic-toolbars-question#10213</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3410<br /><strong>Posted:</strong> 15 December 2005 at 8:11am<br /><br /><P>yes, why not.&nbsp; but instead <FONT size=1>CXTPPopupToolBar::CreatePopupToolBar</FONT></P><P><FONT size=1>use pCommandBars-&gt;Add(..)&nbsp;&nbsp; and check if it was not added before </FONT></P><P><FONT size=1>pCommandBars-&gt;GetToolBar(nBarId);</FONT></P><P><FONT size=1>To float call pToolBar-&gt;SetPosition(xtpBarFloating); + SetWindowPos</FONT></P><P><FONT size=1></FONT>&nbsp;</P><P><FONT size=1>May be better create this toolbar in CMainFrame::OnCreate and hide it (SetVisible(FALSE) and show after user click button.</FONT><FONT size=1></FONT></P><P><FONT size=1></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 15 Dec 2005 08:11:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3410&amp;PID=10213&amp;title=dynamic-toolbars-question#10213</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic toolbars questi&#111;n : I looked a the TearOffPopups sample....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3410&amp;PID=10212&amp;title=dynamic-toolbars-question#10212</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 3410<br /><strong>Posted:</strong> 15 December 2005 at 5:46am<br /><br /><P>I looked a the TearOffPopups sample. it look nice. NeverTheLess, the our engeeners wants the behaviour I mentioned before...</P><P>Is it possible to create a float toolbar when preesing a button ?</P>]]>
   </description>
   <pubDate>Thu, 15 Dec 2005 05:46:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3410&amp;PID=10212&amp;title=dynamic-toolbars-question#10212</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic toolbars questi&#111;n : It is nott very friendly for user... My...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3410&amp;PID=10211&amp;title=dynamic-toolbars-question#10211</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3410<br /><strong>Posted:</strong> 15 December 2005 at 3:30am<br /><br /><P>It is nott very friendly for user...<BR></P><P>My suggestion to use tear-off popup if user click right part of button (see TearOffPopups sample) so user can manually drag it and make toolbar.</P>]]>
   </description>
   <pubDate>Thu, 15 Dec 2005 03:30:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3410&amp;PID=10211&amp;title=dynamic-toolbars-question#10211</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic toolbars questi&#111;n : Hi, In my application I need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3410&amp;PID=10208&amp;title=dynamic-toolbars-question#10208</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 3410<br /><strong>Posted:</strong> 15 December 2005 at 12:46am<br /><br /><P>Hi,</P><P>In my application I need to implement the following behaviour:</P><P>I have a Main toolbar which is docked to the right, and it has a two-part button (a control with the style xtpControlSplitButtonPopup). I want the following behaviour:</P><P>1. pressing the right side of the "Two-Part" control will open a menu with 3 commands.</P><P>2.&nbsp;pressing the left side of the control will open a floating toolbar(with the same 3 commands), which will be placed near the button, and will be open vertically.</P><P>The first part was easy, but I have difficulties in creating the floating toolbar (I am trying to create it in OnCommand method of the Main window):</P><P>- How to create the toolbar ? (I tried the following code in CMainFrame::OnCommand, but I do not see any toolbar):</P><P>Note: I am trying to create the toolbar using ::CreatePopupToolbar and not by calling "GetCommandBars()-&gt;Add(...)", because I do not want the toolbar to be saved in the layout of the commandbars so if the program is closed and open again, the toolbar will not be shown on start.</P><FONT size=2><FONT size=2><P><FONT size=1>BOOL CMainFrame::OnCommand(WPARAM wParam, LPARAM lParam) </FONT></P><P><FONT size=1>{</FONT></P><P></FONT><FONT size=1><FONT color=#0000ff>int</FONT> aId = wParam;</FONT></P><P><FONT size=1><FONT color=#0000ff>if</FONT> (aId = 555)</FONT></P><P><FONT size=1>{</FONT></P><P><FONT size=1>CXTPPopupToolBar* pPopupToolBar = CXTPPopupToolBar::CreatePopupToolBar(GetCommandBars());</FONT></P><P><FONT size=1>pPopupToolBar-&gt;EnableCustomization(FALSE);</FONT></P><P><FONT size=1>CXTPControl* pControl1 = pPopupToolBar-&gt;GetControls()-&gt;Add(xtpControlButton, ID_FILE_NEW);</FONT></P><P><FONT size=1>CXTPControl* pControl2 = pPopupToolBar-&gt;GetControls()-&gt;Add(xtpControlButton, ID_FILE_OPEN);</FONT></P><P><FONT size=1>CXTPControl* pControl3 = pPopupToolBar-&gt;GetControls()-&gt;Add(xtpControlButton, ID_FILE_SAVE);</FONT></P><P><FONT size=1>}</FONT></P><P><FONT size=1><FONT color=#0000ff>return</FONT> CMDIFrameWnd::OnCommand(wParam, lParam);</FONT></P><P><FONT size=1>}</FONT></P><P><FONT size=1>- How can I create the toolbar so it will be vertical and not horizontal ?</FONT></P><P><FONT size=1>Yoav.</FONT></P></FONT>]]>
   </description>
   <pubDate>Thu, 15 Dec 2005 00:46:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3410&amp;PID=10208&amp;title=dynamic-toolbars-question#10208</guid>
  </item> 
 </channel>
</rss>