<?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 : Actions not working</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Actions not working]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 13:47:45 +0000</pubDate>
  <lastBuildDate>Mon, 12 Feb 2007 00:29:48 +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=6373</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[Actions not working : Ahh, I see it now. I could not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6373&amp;PID=20294&amp;title=actions-not-working#20294</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2749">WayneB</a><br /><strong>Subject:</strong> 6373<br /><strong>Posted:</strong> 12 February 2007 at 12:29am<br /><br />Ahh, I see it now. I could not find the "Enable Actions" hyperlink before. Thank you.<br><br>May I ask why that is not a property of the CommandBars control? I expected it to be found under the Commandbars-&gt;Settings dialog since it affects the entire collection of controls.<br><br>If anyone else has trouble finding it, here's a screenshot for you:<br><br><img src="uploads/20070212_002630_cjd.JPG" height="480" width="639" border="0"><br><br>]]>
   </description>
   <pubDate>Mon, 12 Feb 2007 00:29:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6373&amp;PID=20294&amp;title=actions-not-working#20294</guid>
  </item> 
  <item>
   <title><![CDATA[Actions not working : You could always just enableActions...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6373&amp;PID=20292&amp;title=actions-not-working#20292</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2141">nvierros</a><br /><strong>Subject:</strong> 6373<br /><strong>Posted:</strong> 11 February 2007 at 11:57pm<br /><br />You could always just enable&nbsp;Actions within the commandbars design studio, that way you dont need to call .enableactions.<DIV>&nbsp;</DIV><DIV>You just have to add the action to the collections..</DIV><DIV>&nbsp;</DIV><DIV>In the design studio, click on an item then in the propertygrid select, EnableActions.</DIV><DIV>&nbsp;</DIV><DIV>:)</DIV>]]>
   </description>
   <pubDate>Sun, 11 Feb 2007 23:57:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6373&amp;PID=20292&amp;title=actions-not-working#20292</guid>
  </item> 
  <item>
   <title><![CDATA[Actions not working : The only time that Actions work...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6373&amp;PID=20285&amp;title=actions-not-working#20285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2749">WayneB</a><br /><strong>Subject:</strong> 6373<br /><strong>Posted:</strong> 11 February 2007 at 7:31pm<br /><br />The only time that Actions work for me is when I add the Actions BEFORE loading the designer xcb file.<br><br>This also works:<br><br><table width="99%"><tr><td><pre class="BBcode"><br><font color="#0000ff">With </font>CommandBars<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .LoadDesignerBars VB.App.Path &amp; "\MainWindow.xcb"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableActions<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddCommandActions <font color="#006600">' See previous post for code of this procedure.</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .LoadDesignerBars VB.App.Path &amp; "\MainWindow.xcb"<br>&nbsp;&nbsp;&nbsp; ...<br><font color="#0000ff">End Sub</font><br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Sun, 11 Feb 2007 19:31:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6373&amp;PID=20285&amp;title=actions-not-working#20285</guid>
  </item> 
  <item>
   <title><![CDATA[Actions not working : I am using the following code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6373&amp;PID=20284&amp;title=actions-not-working#20284</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2749">WayneB</a><br /><strong>Subject:</strong> 6373<br /><strong>Posted:</strong> 11 February 2007 at 7:22pm<br /><br />I am using the following code to create one Action for each Control that I created in the designer. This code runs, however when I handle the Execute event (shown below) nothing happens.<br><br>Also, there is no option in the Designer to "Enable Actions", I have looked everywhere...<br><br><table width="99%"><tr><td><pre class="BBcode"><br><font face="Courier New, Courier, mono" size="1"><font color="#0000ff">Private Sub</font> MDIForm_Load<font color="#0000ff">()</font><br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CommandBarsGlobalSettings.App <font color="#000000">=</font> VB.App<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">With</font> CommandBars<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .LoadDesignerBars VB.App.Path &amp; "\MainWindow.xcb"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableActions<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableCustomization <font color="#0000ff">False</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Icons = ImageManager1.Icons<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">With </font>.ShowTabWorkspace(<font color="#0000ff">True</font>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableGroups<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">End With</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">With </font>.StatusBar<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Visible = <font color="#0000ff">True</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">With </font>.AddPane(0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Style = SBPS_STRETCH<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Text = "Test!"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">End With</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddPane ID_INDICATOR_CAPS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddPane ID_INDICATOR_NUM<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddPane ID_INDICATOR_SCRL<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">End With</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">End With</font><br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; AddCommandActions<br><br><font color="#0000ff">End Sub</font><br><br><font color="#0000ff">Private Sub</font> AddCommandActions()<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">Dim </font>colTool <font color="#0000ff">As </font>XtremeCommandBars.CommandBarControls, oTool <font color="#0000ff">As </font>XtremeCommandBars.CommandBarControl<br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">Dim </font>colAction <font color="#0000ff">As </font>XtremeCommandBars.CommandBarActions<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">With </font>CommandBars<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">Set </font>colTool = .DesignerControls<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">Set </font>colAction = .Actions<br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">End With</font><br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">For Each</font> oTool <font color="#0000ff">In </font>colTool<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">With </font>oTool<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; colAction.Add oTool.Id, oTool.Caption, oTool.ToolTipText, oTool.DescriptionText, oTool.Category<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">End With</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">Next</font><br>&nbsp;&nbsp;&nbsp; <br><font color="#0000ff">End Sub</font></font><br><br><font face="Courier New, Courier, mono" size="1"><font color="#0000ff">Private Sub</font> CommandBars_Execute(<font color="#0000ff">ByVal </font>Control <font color="#0000ff">As </font>XtremeCommandBars.ICommandBarControl)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">Debug</font>.<font color="#0000ff">Print </font>"MainWindowMDI.CommandBars_Execute " &amp; Control.Caption<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">Select Case</font> Control.Id<br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">Case </font>ID_WINDOW_DBEX, ID_WINDOW_QUERYRESULTS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  <font color="#ff0000">' NOTE: This doesn't do ANYTHING!</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">With </font>CommandBars.Actions(Control.Id)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Checked = <font color="#0000ff">True</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff">End With</font><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  <br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">End Select</font><br><font color="#0000ff">End Sub</font></font><br></pre></td></tr></table>]]>
   </description>
   <pubDate>Sun, 11 Feb 2007 19:22:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6373&amp;PID=20284&amp;title=actions-not-working#20284</guid>
  </item> 
 </channel>
</rss>