<?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 : Dynamically changing menus</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Dynamically changing menus]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 03:45:44 +0000</pubDate>
  <lastBuildDate>Mon, 04 Feb 2008 21:42:41 +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=9475</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[Dynamically changing menus : Thanks corpcon  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9475&amp;PID=30788&amp;title=dynamically-changing-menus#30788</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9475<br /><strong>Posted:</strong> 04 February 2008 at 9:42pm<br /><br />Thanks corpcon]]>
   </description>
   <pubDate>Mon, 04 Feb 2008 21:42:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9475&amp;PID=30788&amp;title=dynamically-changing-menus#30788</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamically changing menus : This is a taste of what I use....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9475&amp;PID=30768&amp;title=dynamically-changing-menus#30768</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3113">corpcon</a><br /><strong>Subject:</strong> 9475<br /><strong>Posted:</strong> 04 February 2008 at 1:19am<br /><br />This is a taste of what I use. It determines what primary&nbsp;form is open and displays only the appropriate menus (in my case, I have 4 or 5 primary forms of which require certain menu items - using your example, one primary&nbsp;form would be the main form for word processing).&nbsp;You may need to reference the&nbsp;provided Codejock&nbsp;samples if this doesn't make sense, because that's how I figured this out.&nbsp;Note that the "gcs" variables are global constant strings that contain the names of the primary forms.<DIV>&nbsp;</DIV><DIV>In the Update event ...</DIV><DIV>&nbsp;</DIV><DIV>Dim sThisForm As String</DIV><DIV>If Screen.ActiveForm Is Nothing Then Exit Sub<BR>sThisForm = Screen.ActiveForm.Name</DIV><DIV>&nbsp;</DIV><DIV>' Viewing a menu header (in this case the "Open" menu header)&nbsp;...</DIV><DIV>ControlOpenMenu.Visible = IIf(sThisForm = gcsRegistrationForm Or sThisForm = gcsBarcodeForm Or sThisForm = gcsMainOrderForm, False, True)</DIV><DIV>&nbsp;</DIV><DIV>'&nbsp;Viewing specific menu items ...</DIV><DIV>Select Case Control.Id</DIV><DIV>&nbsp;&nbsp;&nbsp; Case ID_OPEN_SETUP: Control.Visible = IIf(sThisForm = gcsSetupForm, False, True)</DIV><DIV>&nbsp;</DIV><DIV>' More detail based on circumstance ...</DIV><DIV>&nbsp;&nbsp;&nbsp; Case ID_OPEN_DYMOSETUP<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If sThisForm = gcsSetupForm Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Visible = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Enabled = IIf(gbUseDymoAddressLabels = True, True, False)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Visible = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If</DIV>]]>
   </description>
   <pubDate>Mon, 04 Feb 2008 01:19:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9475&amp;PID=30768&amp;title=dynamically-changing-menus#30768</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamically changing menus : I am creating a VB6 application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9475&amp;PID=30745&amp;title=dynamically-changing-menus#30745</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9475<br /><strong>Posted:</strong> 02 February 2008 at 5:41am<br /><br />I am creating a VB6 application which consists of several different document types (e.g. database table viewer, word processing etc), and each of these documents requires a different menu set.<br><br>I need to be able to change the entire menu (not just elements of an existing menu), when the 'active document' changes. Does anyone know how I may implement this using the CommandBars control?.<br><br><br>]]>
   </description>
   <pubDate>Sat, 02 Feb 2008 05:41:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9475&amp;PID=30745&amp;title=dynamically-changing-menus#30745</guid>
  </item> 
 </channel>
</rss>