<?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 force &quot;Update&quot; of CommandBar Ctrl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to force &quot;Update&quot; of CommandBar Ctrl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:33:36 +0000</pubDate>
  <lastBuildDate>Tue, 19 Oct 2004 11:35:15 +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=814</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 force &quot;Update&quot; of CommandBar Ctrl : I will definetly pass this on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=814&amp;PID=3557&amp;title=how-to-force-update-of-commandbar-ctrl#3557</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 814<br /><strong>Posted:</strong> 19 October 2004 at 11:35am<br /><br />I will definetly pass this on to development.&nbsp; I understand now.<br>]]>
   </description>
   <pubDate>Tue, 19 Oct 2004 11:35:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=814&amp;PID=3557&amp;title=how-to-force-update-of-commandbar-ctrl#3557</guid>
  </item> 
  <item>
   <title><![CDATA[How to force &quot;Update&quot; of CommandBar Ctrl : SuperMario, If you look at the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=814&amp;PID=3556&amp;title=how-to-force-update-of-commandbar-ctrl#3556</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 814<br /><strong>Posted:</strong> 19 October 2004 at 11:30am<br /><br /><P>SuperMario,</P><P>If you look at the original post, it actually uses the Execute method.&nbsp; The code snippet was provided so that you could trigger the execution of a control based purely on the ID of the control without having to search for that control in a command bar.&nbsp; Look closely and it will make more sense.</P><P>As you may have noticed, nobody ever responded to my request for an Update method to accompany the Execute method.&nbsp; Any chance of getting something like this added?</P><P>Thanks!</P>]]>
   </description>
   <pubDate>Tue, 19 Oct 2004 11:30:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=814&amp;PID=3556&amp;title=how-to-force-update-of-commandbar-ctrl#3556</guid>
  </item> 
  <item>
   <title><![CDATA[How to force &quot;Update&quot; of CommandBar Ctrl : For any new users that might read...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=814&amp;PID=3554&amp;title=how-to-force-update-of-commandbar-ctrl#3554</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 814<br /><strong>Posted:</strong> 19 October 2004 at 11:22am<br /><br />For any new users that might read this post, an Execute method was added that will allow you to execute individual controls.<br>]]>
   </description>
   <pubDate>Tue, 19 Oct 2004 11:22:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=814&amp;PID=3554&amp;title=how-to-force-update-of-commandbar-ctrl#3554</guid>
  </item> 
  <item>
   <title><![CDATA[How to force &quot;Update&quot; of CommandBar Ctrl : I use the &amp;#039;Update&amp;#039; event...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=814&amp;PID=2159&amp;title=how-to-force-update-of-commandbar-ctrl#2159</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 814<br /><strong>Posted:</strong> 08 June 2004 at 10:01am<br /><br /><P>I use the 'Update' event of CommandBars to determine when controls should be enabled and set various other properties.&nbsp; I also use the 'Execute' event for most of my actions.</P><P>I came across the need to "trigger" the Execute event for a control that was not necessarily clicked upon.&nbsp; For instance, I have certain internal shortcut keys that will trigger a command without using KeyBindings (this was done by design since KeyBindings intercepts all shortcut keys).&nbsp; I created the following routine to trigger the execution of a command based on the ID of the command bar control:</P><P>Public Sub ExecuteCommandBarControl(ByRef CommandBars As CommandBars, ByVal ID As Long)<BR>&nbsp; Dim TempBar As CommandBar, Control As CommandBarControl<BR>&nbsp; If CommandBars Is Nothing Then Exit Sub<BR>&nbsp; Set TempBar = CommandBars.Add("Temp", xtpBarPopup)<BR>&nbsp; Set Control = TempBar.Controls.Add(xtpControlButton, ID, "Temporary")<BR>&nbsp; Control.Execute<BR>End Sub</P><P>This results in the Execute event being fired.&nbsp; The problem is that this temporary control never gets passed to the 'Update' event because it is never shown.&nbsp;&nbsp;Is there a way to force the command to update?&nbsp; If not, would it be possible to add an 'Update' method to the CommandBarControl that would trigger the 'Update' event?&nbsp; Then would allow me to modify the procedure to only execute the control if the control is enabled (as is set in the Update event).&nbsp; In other words, this is what I would like to be able to do:</P><P>Public Sub ExecuteCommandBarControl(ByRef CommandBars As CommandBars, ByVal ID As Long)<BR>&nbsp; Dim TempBar As CommandBar, Control As CommandBarControl<BR>&nbsp; If CommandBars Is Nothing Then Exit Sub<BR>&nbsp; Set TempBar = CommandBars.Add("Temp", xtpBarPopup)<BR>&nbsp; Set Control = TempBar.Controls.Add(xtpControlButton, ID, "Temporary")<BR>&nbsp; <strong>Control.Update<BR>&nbsp; If Control.Enabled Then Control.Execute<BR></strong>End Sub</P><P>Thanks in advance.</P>]]>
   </description>
   <pubDate>Tue, 08 Jun 2004 10:01:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=814&amp;PID=2159&amp;title=how-to-force-update-of-commandbar-ctrl#2159</guid>
  </item> 
 </channel>
</rss>