<?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 : How to disable an item in toolbar?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to disable an item in toolbar?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 02:25:38 +0000</pubDate>
  <lastBuildDate>Fri, 14 Dec 2007 15:03:46 +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=9083</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[How to disable an item in toolbar? : Jason, Thanksfor help. :-) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29470&amp;title=how-to-disable-an-item-in-toolbar#29470</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9083<br /><strong>Posted:</strong> 14 December 2007 at 3:03pm<br /><br />Jason, Thanks&nbsp;for help. :-)]]>
   </description>
   <pubDate>Fri, 14 Dec 2007 15:03:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29470&amp;title=how-to-disable-an-item-in-toolbar#29470</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable an item in toolbar? : Thanks a lot, that&amp;#039;s what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29429&amp;title=how-to-disable-an-item-in-toolbar#29429</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2709">lexicon</a><br /><strong>Subject:</strong> 9083<br /><strong>Posted:</strong> 13 December 2007 at 2:34pm<br /><br />Thanks a lot, that's what i want]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 14:34:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29429&amp;title=how-to-disable-an-item-in-toolbar#29429</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable an item in toolbar? : Right. What I would do there is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29427&amp;title=how-to-disable-an-item-in-toolbar#29427</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 9083<br /><strong>Posted:</strong> 13 December 2007 at 1:48pm<br /><br />Right.&nbsp; What I would do there is set up boolean variables in the General Declaration of the form for each of your 2 buttons.<br><br>In Form_Load set the booleans to the disable/enable values you want.<br><br>In CommandBars_Update set the enabled property of each button to the boolean value<br><br>In the click event of each button, set the boolean values to the desired state.<br><br>That should do it.<br>]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 13:48:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29427&amp;title=how-to-disable-an-item-in-toolbar#29427</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable an item in toolbar? : The Update event happens all the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29426&amp;title=how-to-disable-an-item-in-toolbar#29426</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2709">lexicon</a><br /><strong>Subject:</strong> 9083<br /><strong>Posted:</strong> 13 December 2007 at 1:40pm<br /><br />The Update event happens all the time<DIV>I want the program to start with a button disabled (which i can do with Update event) and then after a button clicked to disable another one</DIV><DIV>Lets say you have a New button and a Save Button</DIV><DIV>The Save button will be disabled and when the New button clicked, the New button will be disabled and the Save button will be enabled</DIV><DIV>&nbsp;</DIV><DIV>Thank you very much for your help</DIV>]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 13:40:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29426&amp;title=how-to-disable-an-item-in-toolbar#29426</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable an item in toolbar? : Set up a boolean variable for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29422&amp;title=how-to-disable-an-item-in-toolbar#29422</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 9083<br /><strong>Posted:</strong> 13 December 2007 at 1:01pm<br /><br />Set up a boolean variable for each button that you want to enable/disable.<br><br>In your CommandBars_Update event, set the enabled property for each button&nbsp; to the value of the corresponding variable, like so (or you could specify each button exactly instead of using Select Case):<br><br>Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)<br><br>&nbsp;&nbsp;&nbsp; Select Case Control.ID<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_FIRSTPAGEOFDOCUMENT<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Checked = blnFirstPageOfDocument<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_SUPERVISORCHECK<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Checked = blnSupervisorCheck<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Enabled = blnSupervisorCheckEnable<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_PAGEDOWNNEXTDOCUMENT<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Checked = blnPageDownToNextDocument<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_SPELLCHECKTOGGLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Checked = blnSpellCheck<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_HOMEANDENDKEYENDOFLINETOGGLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Checked = blnHomeAndEndKey<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_ENTERKEYPAGEDOWN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Checked = blnEnterKeyPageDown<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_SUPERVISORCHECKNOTES<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Enabled = blnSupervisorCheckComments<br>&nbsp;&nbsp;&nbsp; End Select<br><br>End Sub<br><br><br><br>When you want to change the enabled state of a button, you simply set the value of the corresponding boolean variable to the desired value.&nbsp; The update event will then take over and enable/disable the button for you.<br>]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 13:01:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29422&amp;title=how-to-disable-an-item-in-toolbar#29422</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable an item in toolbar? : And how can i refer to the spesific...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29410&amp;title=how-to-disable-an-item-in-toolbar#29410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2709">lexicon</a><br /><strong>Subject:</strong> 9083<br /><strong>Posted:</strong> 13 December 2007 at 7:46am<br /><br />And how can i refer to the spesific item in Toolbar?]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 07:46:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29410&amp;title=how-to-disable-an-item-in-toolbar#29410</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable an item in toolbar? : It will usually be in the CommandBars_Update...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29409&amp;title=how-to-disable-an-item-in-toolbar#29409</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 9083<br /><strong>Posted:</strong> 13 December 2007 at 7:36am<br /><br />It will usually be in the CommandBars_Update event.]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 07:36:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29409&amp;title=how-to-disable-an-item-in-toolbar#29409</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable an item in toolbar? : Sorry but even if i&amp;#039;m seeing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29397&amp;title=how-to-disable-an-item-in-toolbar#29397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2709">lexicon</a><br /><strong>Subject:</strong> 9083<br /><strong>Posted:</strong> 13 December 2007 at 2:39am<br /><br />Sorry but even if i'm seeing you doing it in your samples, i still don't understand how you are doing it]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 02:39:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29397&amp;title=how-to-disable-an-item-in-toolbar#29397</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable an item in toolbar? : Hi, Please start learning from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29382&amp;title=how-to-disable-an-item-in-toolbar#29382</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9083<br /><strong>Posted:</strong> 12 December 2007 at 11:04am<br /><br />Hi,<DIV>Please start learning from our samples. They have a lot of such things.</DIV>]]>
   </description>
   <pubDate>Wed, 12 Dec 2007 11:04:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29382&amp;title=how-to-disable-an-item-in-toolbar#29382</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable an item in toolbar? : How to disable an item in toolbar?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29375&amp;title=how-to-disable-an-item-in-toolbar#29375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2709">lexicon</a><br /><strong>Subject:</strong> 9083<br /><strong>Posted:</strong> 12 December 2007 at 8:28am<br /><br />How to disable an item in toolbar?]]>
   </description>
   <pubDate>Wed, 12 Dec 2007 08:28:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9083&amp;PID=29375&amp;title=how-to-disable-an-item-in-toolbar#29375</guid>
  </item> 
 </channel>
</rss>