<?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 : Toolbar butt&#111;n selecti&#111;n menu is disabled</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Toolbar butt&#111;n selecti&#111;n menu is disabled]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 12:49:47 +0000</pubDate>
  <lastBuildDate>Thu, 28 Oct 2004 07:22:23 +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=1337</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[Toolbar butt&#111;n selecti&#111;n menu is disabled : Hi, I added a toolbar at run...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1337&amp;PID=3740&amp;title=toolbar-button-selection-menu-is-disabled#3740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 1337<br /><strong>Posted:</strong> 28 October 2004 at 7:22am<br /><br /><P>Hi,</P><P>I added a toolbar at run time&nbsp;like this:</P><P>...<BR>ON_XTP_EXECUTE_RANGE(ID_TOOLBAR_B1,ID_TOOLBAR_B6,OnButtons)<BR>...</P><P>CXTPToolBar* pBar1 = (CXTPToolBar*)pCommandBars-&gt;Add(_T("test"), xtpBarTop);<BR>&nbsp;if(pBar1)<BR>&nbsp;{<BR>&nbsp;&nbsp;pBar1-&gt;SetIconSize(CSize(24,24));<BR>&nbsp;&nbsp;pBar1-&gt;SetButtons(toolbar1_buttons,6);<BR>&nbsp;}<BR>...</P><P>I have two questions:</P><P>1. The toolbar buttons are disabled by default, until I add a &nbsp;ON_COMMAND_RANGE(ID_TOOLBAR_B1,ID_TOOLBAR_B6,OnFavorit e) . So I want to know what's the difference&nbsp;between&nbsp;the command in XTP_EXECUTE handler and COMMAND_RANGE handler.</P><P>2. After I added the ON_COMMAND_RANGE, the toolbar buttons are enable, but the toolbar's&nbsp;customize menu (used to add/remove a button) is still disabled, I can not add/remove any buttons through that menu.</P><P>I am using XT 8.6.</P><span style="font-size:10px"><br /><br />Edited by jeffcmj</span>]]>
   </description>
   <pubDate>Thu, 28 Oct 2004 07:22:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1337&amp;PID=3740&amp;title=toolbar-button-selection-menu-is-disabled#3740</guid>
  </item> 
 </channel>
</rss>