<?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 : intelligent menus</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : intelligent menus]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:38:55 +0000</pubDate>
  <lastBuildDate>Thu, 29 Jul 2004 22:40:25 +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=987</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[intelligent menus : Thanks SuperMario :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2610&amp;title=intelligent-menus#2610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=658">dajv</a><br /><strong>Subject:</strong> 987<br /><strong>Posted:</strong> 29 July 2004 at 10:40pm<br /><br />Thanks SuperMario :)]]>
   </description>
   <pubDate>Thu, 29 Jul 2004 22:40:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2610&amp;title=intelligent-menus#2610</guid>
  </item> 
  <item>
   <title><![CDATA[intelligent menus : The DesignerControls collection...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2609&amp;title=intelligent-menus#2609</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 987<br /><strong>Posted:</strong> 29 July 2004 at 9:32pm<br /><br /><P>The DesignerControls collection of commands only holds commands that are displayed in the "Commands"&nbsp;tab of the Add\remove buttons customize dialog.&nbsp; This collection is designed to hold all of your applicatio's controls so the user can add\remove them as needed.&nbsp; </P><P>You need to change the caption of the control in CommandBars.ActiveMenuBar or CommandBars(2).FindControl or CommandBars(2).Controls.Find.&nbsp; FYI: CommandBars(1) is the ActiveMenubar, CommandBars(2) is the first toolbar added, etc...</P><P><FONT face="Courier New" size=2>1) Private Sub Command1_Click() <BR>2)&nbsp;&nbsp;&nbsp;&nbsp;Dim ctrl As CommandBarControl <BR>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set ctrl = CommandBars.ActiveMenuBar.FindControl(, ID_VIEW_STATUSBAR)<BR></FONT><FONT face="Courier New" size=2>4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ctrl.Caption = "&amp;Status Bar... X" <BR>5 End sub</FONT> </P>]]>
   </description>
   <pubDate>Thu, 29 Jul 2004 21:32:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2609&amp;title=intelligent-menus#2609</guid>
  </item> 
  <item>
   <title><![CDATA[intelligent menus : I&amp;#039;m having trouble setting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2607&amp;title=intelligent-menus#2607</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=658">dajv</a><br /><strong>Subject:</strong> 987<br /><strong>Posted:</strong> 29 July 2004 at 7:23pm<br /><br />I'm having trouble setting commandbar control attributes at run time... I have a command button whos event handler does the following:<br /><br /><font face="Courier New, Courier, mono"><font size="2">1) Private Sub Command1_Click()<br />2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim ctrl As CommandBarControl<br />3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim ctrl1 As CommandBarControl<br />4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set ctrl = CommandBars.DesignerControls.Find(, ID_VIEW_STATUSBAR)<br />5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ctrl.Caption = "&Status Bar... X"<br />6)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set ctrl1 = CommandBars.DesignerControls.Find(, ID_VIEW_STATUSBAR)<br />7) End sub</font></font><br /><br />As you can see, im using designer controls (at the moment at least). After this has run, the command bar control (a menu item with caption "&Status Bar...") is not updated to read "&Status Bar... X", however stepping through the code i can see that after line 6 ctrl1.Caption DOES equal "&Status Bar... X".<br /><br />The curious thing is that if i do Control.Caption = "blah" in the CommandBars_Update() or CommandBars_Execute() subs, the menu bar IS updated.<br /><br />Obviously I will need to make modifications to the menu outside of these subs, so am I doing something wrong?<br /><span style="font-size:10px"><br /><br />Edited by dajv</span>]]>
   </description>
   <pubDate>Thu, 29 Jul 2004 19:23:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2607&amp;title=intelligent-menus#2607</guid>
  </item> 
  <item>
   <title><![CDATA[intelligent menus : Thanks for your reply.  Are there...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2599&amp;title=intelligent-menus#2599</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=658">dajv</a><br /><strong>Subject:</strong> 987<br /><strong>Posted:</strong> 28 July 2004 at 11:22pm<br /><br />Thanks for your reply.<br /><br />Are there any advantages/disadvantages of using a xcb "xtreme command bars designer" file over programmatically creating the menus? That is, other than the initial creation of the menus (i think both are time consuming and probably incur the same amount of time), are tehre any drawbacks of either method?<br /><br />]]>
   </description>
   <pubDate>Wed, 28 Jul 2004 23:22:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2599&amp;title=intelligent-menus#2599</guid>
  </item> 
  <item>
   <title><![CDATA[intelligent menus : Use the AddHiddenCommand method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2593&amp;title=intelligent-menus#2593</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 987<br /><strong>Posted:</strong> 28 July 2004 at 7:10am<br /><br /><pre ="code">Use the AddHiddenCommand method to specify that a menu item to appear hidden.  <br>This adds the specified command as a hidden command, i.e. an infrequently used command.&nbsp; <br>The command will not be displayed in popup menus until the user clicks on the "expand menu" <br>chevron button or after a short delay when ShowFullAfterDelay is true.<br><br>CommandBars.Options.AlwaysShowFullMenus = False<br>CommandBars.Options.AddHiddenCommand (ID_FILE_SAVE)<br>CommandBars.Options.AddHiddenCommand (ID_FILE_CLOSE)<br>CommandBars.Options.AddHiddenCommand (ID_FILE_SAVE_AS)<br><br>To hide the control so the user can not see it, use Visible = False<br></pre>]]>
   </description>
   <pubDate>Wed, 28 Jul 2004 07:10:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2593&amp;title=intelligent-menus#2593</guid>
  </item> 
  <item>
   <title><![CDATA[intelligent menus : Hello,  I&amp;#039;m trying to set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2588&amp;title=intelligent-menus#2588</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=658">dajv</a><br /><strong>Subject:</strong> 987<br /><strong>Posted:</strong> 27 July 2004 at 11:30pm<br /><br />Hello,<br /><br />I'm trying to set menu items to only appear when recently used... as far as I can tell, one sets this by setting the visibility property to "visible if recently used". I've set this for some menu items but it seems to have no effect. What could i be doing wrong?<br /><br />I also wonder how to set this programmatically? There doesnt seem to be a way, e.g.<br />Set ControlFile = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "&File")<br />With ControlFile.CommandBar.Controls<br />&nbsp;&nbsp;&nbsp;&nbsp;Set Control = .Add(xtpControlButton, ID_FILE_NEW, "&New Database...")<br />&nbsp;&nbsp;&nbsp;&nbsp;Control.Visibility = "some value resembling recently used"<br />End With<br /><br />The visibility property only allows true and false.<br /><br />Any advice would be appreciated<br />]]>
   </description>
   <pubDate>Tue, 27 Jul 2004 23:30:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=987&amp;PID=2588&amp;title=intelligent-menus#2588</guid>
  </item> 
 </channel>
</rss>