<?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 : Enable/Disable items when Ribbon is Minimized</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Enable/Disable items when Ribbon is Minimized]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 06:41:44 +0000</pubDate>
  <lastBuildDate>Mon, 11 Feb 2008 08:37:21 +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=9537</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[Enable/Disable items when Ribbon is Minimized : Thanks Oleg  Are you saying...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9537&amp;PID=31036&amp;title=enable-disable-items-when-ribbon-is-minimized#31036</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3738">H2Os</a><br /><strong>Subject:</strong> 9537<br /><strong>Posted:</strong> 11 February 2008 at 8:37am<br /><br />Thanks Oleg<DIV>&nbsp;</DIV><DIV>Are you saying that FindControl shouldn't be used at all? What appens if one control affects another?</DIV><DIV>&nbsp;</DIV><DIV>e.g. I have a combo box and some buttons which move the current selected item to first/previous/next /last - when the button is clicked how <EM>should</EM> I find the combo box?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 11 Feb 2008 08:37:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9537&amp;PID=31036&amp;title=enable-disable-items-when-ribbon-is-minimized#31036</guid>
  </item> 
  <item>
   <title><![CDATA[Enable/Disable items when Ribbon is Minimized : Hi, You need use Actions or Update...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9537&amp;PID=30983&amp;title=enable-disable-items-when-ribbon-is-minimized#30983</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9537<br /><strong>Posted:</strong> 08 February 2008 at 2:52pm<br /><br />Hi,<DIV>You need use Actions or Update handlers.&nbsp; FindControl is evil - using this way you will not update control in minimized ribbon or control that was added to QAT.</DIV><DIV>Actions is solution for you - it will update all instances with same Id:</DIV><DIV>&nbsp;</DIV>fMainForm.CommandBars.Actions(ID_EDIT_SELECT).Enabled = False]]>
   </description>
   <pubDate>Fri, 08 Feb 2008 14:52:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9537&amp;PID=30983&amp;title=enable-disable-items-when-ribbon-is-minimized#30983</guid>
  </item> 
  <item>
   <title><![CDATA[Enable/Disable items when Ribbon is Minimized : Hi  Have been using the CommandBar11.2.0...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9537&amp;PID=30973&amp;title=enable-disable-items-when-ribbon-is-minimized#30973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3738">H2Os</a><br /><strong>Subject:</strong> 9537<br /><strong>Posted:</strong> 08 February 2008 at 10:39am<br /><br />Hi<DIV>&nbsp;</DIV><DIV>Have been using the CommandBar&nbsp;11.2.0 with ribbon style for a week or so now - makes our app look really sweet!</DIV><DIV>&nbsp;</DIV><DIV>But, I have found a reproducible problem...</DIV><DIV>&nbsp;</DIV><DIV>Take the VB6 RibbonMDISample app, add a check box to frmDocument and add the following code in the _Click&nbsp;event:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim p_CommandControl As CommandBarControl<BR>&nbsp;&nbsp;&nbsp; Set p_CommandControl = fMainForm.CommandBars.FindControl(, ID_EDIT_SELECT, , True)<BR>&nbsp;&nbsp;&nbsp; p_CommandControl.Enabled = (Check1.Value = vbChecked)</DIV><DIV>&nbsp;</DIV><DIV>Run the app and you will see that the Select button on the Edit tab enables and disables as expected.</DIV><DIV>&nbsp;</DIV><DIV>Now&nbsp;click "Minimize the Ribbon" from the QAT, then click the Edit tab to make the ribbon popup. From now on, clicking the check box has no effect on the button at all, whether it is minimized or not.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>There is a way round this, and that is to use Actions, but&nbsp;as I will only ever have one instance of an ID there seems little point in defining an action for each&nbsp;ID&nbsp;I want to be able to enable/disable.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 08 Feb 2008 10:39:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9537&amp;PID=30973&amp;title=enable-disable-items-when-ribbon-is-minimized#30973</guid>
  </item> 
 </channel>
</rss>