<?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 : Converting from old CXTPToolBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Converting from old CXTPToolBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Apr 2026 07:06:07 +0000</pubDate>
  <lastBuildDate>Fri, 11 Jul 2008 08:07:22 +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=11397</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[Converting from old CXTPToolBar : Right, I&amp;#039;m getting somewhere...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11397&amp;PID=38231&amp;title=converting-from-old-cxtptoolbar#38231</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4335">james.boulton</a><br /><strong>Subject:</strong> 11397<br /><strong>Posted:</strong> 11 July 2008 at 8:07am<br /><br />Right, I'm getting somewhere now...<DIV>&nbsp;</DIV><DIV>The drop down button type I was using before is now called xtpControlSplitButtonPopup. So if I set the type of the toolbar button to this, I can then load in a new toolbar for the popup like this...</DIV><FONT size=2><P>m_pEditToolBar-&gt;GetControls()-&gt;SetControlType(TOOL_BOUNDINGVOLUME, xtpControlSplitButtonPopup);</P><DIV>CXTPControlPopup *pSubBar = (CXTPControlPopup *) m_pEditToolBar-&gt;GetControl(TOOL_BOUNDINGVOLUME);</DIV><P>pSubBar-&gt;GetCommandBar()-&gt;LoadToolBar(IDR_BOUNDINGSHAPE_TOOLBAR);</P><P>This works ok, but displays a menu style dropdown including an empty space where the text would be. I'd tried setting the width of the popup and setting the draw style to be icons only, but nothing seems to get rid of the empty space to the right of the icon.</P><DIV></DIV><P>How can I set this up so the drop down only displays the icon and nothing else?</P><DIV></DIV><DIV></DIV>ta!<DIV></DIV>-- James</FONT>]]>
   </description>
   <pubDate>Fri, 11 Jul 2008 08:07:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11397&amp;PID=38231&amp;title=converting-from-old-cxtptoolbar#38231</guid>
  </item> 
  <item>
   <title><![CDATA[Converting from old CXTPToolBar : I have an app I am converting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11397&amp;PID=38223&amp;title=converting-from-old-cxtptoolbar#38223</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4335">james.boulton</a><br /><strong>Subject:</strong> 11397<br /><strong>Posted:</strong> 11 July 2008 at 6:09am<br /><br />I have an app I am converting over from VC6 to .NET and ToolkitPro. In the app I am using <FONT size=2>CXTPToolBar for a toolbar, using a radio button style interface.<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>The new implementation of CXTPToolBar seems to be lacking in any way to set the buttons in the toolbar to be radio buttons, other than actual radio button controls. Previously I just used SetButtonStyle and TBSTYLE_GROUP to set this up.</DIV><DIV>&nbsp;</DIV><DIV>I have worked around this by manually setting the checked status of the toolbar buttons using <FONT size=2>ON_UPDATE_COMMAND_UI, which does work but is a little ugly compared to the original solution.</FONT></DIV><DIV>&nbsp;</DIV><DIV>Secondly I used a drop-down button selection to select sub-tools from the tool bar by using AddDropDownButton. The only similar feature I can find in the new implementation is to set the control style to <FONT size=2>xtpControlButtonPopup, but this doesnt provide the checkable radio-button style interface of the original.</FONT></DIV><DIV>&nbsp;</DIV><DIV>Is there any way I can replicate the functionality of the original control, as it worked perfectly for my needs?</DIV><DIV>&nbsp;</DIV><DIV>Cheers,</DIV><DIV>-- James</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 11 Jul 2008 06:09:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11397&amp;PID=38223&amp;title=converting-from-old-cxtptoolbar#38223</guid>
  </item> 
 </channel>
</rss>