<?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 : [SOLVED] Disable all buttons</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : [SOLVED] Disable all buttons]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 15:59:40 +0000</pubDate>
  <lastBuildDate>Sat, 16 Apr 2011 04:20:10 +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=18225</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[[SOLVED] Disable all buttons : thank, Oleg.  CommandBars Update...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18225&amp;PID=63919&amp;title=solved-disable-all-buttons#63919</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4669">gibra</a><br /><strong>Subject:</strong> 18225<br /><strong>Posted:</strong> 16 April 2011 at 4:20am<br /><br />thank, Oleg.<DIV>&nbsp;</DIV><DIV>CommandBars <strong>Update</strong> event is the best choice to set/get disable state.</DIV>]]>
   </description>
   <pubDate>Sat, 16 Apr 2011 04:20:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18225&amp;PID=63919&amp;title=solved-disable-all-buttons#63919</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Disable all buttons : Thank,  I will try your suggestion....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18225&amp;PID=63911&amp;title=solved-disable-all-buttons#63911</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4669">gibra</a><br /><strong>Subject:</strong> 18225<br /><strong>Posted:</strong> 15 April 2011 at 12:43pm<br /><br /><P>Thank, <img src="http://forum.codejock.com/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" /></P><DIV>I will try your suggestion.</DIV>]]>
   </description>
   <pubDate>Fri, 15 Apr 2011 12:43:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18225&amp;PID=63911&amp;title=solved-disable-all-buttons#63911</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Disable all buttons : Hi,Use Update handler:if Control.Parent.BarID...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18225&amp;PID=63902&amp;title=solved-disable-all-buttons#63902</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 18225<br /><strong>Posted:</strong> 15 April 2011 at 8:07am<br /><br />Hi,<div><br></div><div>Use Update handler:</div><div><br></div><div>&nbsp;&nbsp;if Control.Parent.BarID = ID_MY_BAR then Control.Enabled = False<div><br></div><div><br></div></div>]]>
   </description>
   <pubDate>Fri, 15 Apr 2011 08:07:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18225&amp;PID=63902&amp;title=solved-disable-all-buttons#63902</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Disable all buttons : I have a toolbar where I could...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18225&amp;PID=63892&amp;title=solved-disable-all-buttons#63892</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4669">gibra</a><br /><strong>Subject:</strong> 18225<br /><strong>Posted:</strong> 14 April 2011 at 5:48pm<br /><br />I have a toolbar where I could disable all buttons at once. <DIV>&nbsp;</DIV><DIV><DIV></DIV>I don't find a property like <strong>Enabled</strong> which allows me this action.</DIV><DIV>The better should be something like <strong>Toolbar.Enabled = True/False</strong></DIV><DIV>i.e.</DIV><DIV>&nbsp;</DIV><DIV><U>CODE</U></DIV><DIV><U></U>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">With CommandBarContacts</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;.DeleteAll<BR>&nbsp;&nbsp;&nbsp;&nbsp;.EnableCustomization False<BR>&nbsp;&nbsp;&nbsp;&nbsp;.Options.ShowExpandButtonAlways = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;.Icons.LoadBitmap gsIcons16x16, gaArray16x16, XtremeCommandBars.XTPImageState.xtpImageNormal</FONT></DIV><DIV><BR><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;Set cToolbar = .Add("Contacts", xtpBarTop)&nbsp;&nbsp;&nbsp; </FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;With cToolbar<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SetIconSize 16, 16<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ShowGripper = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Customizable = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableDocking xtpFlagStretchedShared</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><FONT color=#0000ff>.Enabled = False</FONT></strong><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Or .EnableAllButtons = False</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;End With</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">End With</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV>How to? <img src="http://forum.codejock.com/smileys/smiley19.gif" height="17" width="17" border="0" alt="Cry" title="Cry" /></DIV><DIV>&nbsp;</DIV><DIV>The only way to disable all buttons that I find is:</DIV><DIV><FONT color=#0000ff face="Courier New, Courier, mono">Public Sub DisableToolbar(ByRef tb As CommandBar, ByVal bMode As Boolean)<BR>&nbsp;&nbsp;&nbsp; Dim btn As CommandBarControl<BR>&nbsp;&nbsp;&nbsp; For Each btn In tb.Controls<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btn.enabled = bMode<BR>&nbsp;&nbsp;&nbsp; Next<BR>End Sub</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 14 Apr 2011 17:48:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18225&amp;PID=63892&amp;title=solved-disable-all-buttons#63892</guid>
  </item> 
 </channel>
</rss>