<?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 : Changing Menu Capti&#111;ns</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Changing Menu Capti&#111;ns]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:11:09 +0000</pubDate>
  <lastBuildDate>Mon, 22 Mar 2004 18:57:03 +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=547</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[Changing Menu Capti&#111;ns : OK thanks. Got it wotking now...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=547&amp;PID=1417&amp;title=changing-menu-captions#1417</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=419">rdtcgriffin</a><br /><strong>Subject:</strong> 547<br /><strong>Posted:</strong> 22 March 2004 at 6:57pm<br /><br />OK thanks. Got it wotking now <IMG src="http://forum.codejock.com/smileys/smiley4.gif" border="0"><span style="font-size:10px"><br /><br />Edited by rdtcgriffin</span>]]>
   </description>
   <pubDate>Mon, 22 Mar 2004 18:57:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=547&amp;PID=1417&amp;title=changing-menu-captions#1417</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Menu Capti&#111;ns : For popup control you must additional...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=547&amp;PID=1415&amp;title=changing-menu-captions#1415</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 547<br /><strong>Posted:</strong> 22 March 2004 at 8:11am<br /><br /><P>For popup control you must additional assign its ID:</P><P>&nbsp;Set ControlView = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, <strong>10</strong>, "File", -1, False)</P><P>ControlView .Id = <strong>10</strong><BR></P>]]>
   </description>
   <pubDate>Mon, 22 Mar 2004 08:11:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=547&amp;PID=1415&amp;title=changing-menu-captions#1415</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Menu Capti&#111;ns : Thanks! I can now change the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=547&amp;PID=1411&amp;title=changing-menu-captions#1411</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=419">rdtcgriffin</a><br /><strong>Subject:</strong> 547<br /><strong>Posted:</strong> 21 March 2004 at 9:27pm<br /><br /><P>Thanks!</P><P>I can now change the captions of the buttons (xtpControlButton). </P><P>But how do I change the caption of type xtpControlPopup? I get "Run-time error 91&nbsp;Object variable or With block not set"&nbsp;when I use the popup's&nbsp;ID for the code you gave above. </P>]]>
   </description>
   <pubDate>Sun, 21 Mar 2004 21:27:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=547&amp;PID=1411&amp;title=changing-menu-captions#1411</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Menu Capti&#111;ns : Just assign an Id to each control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=547&amp;PID=1396&amp;title=changing-menu-captions#1396</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 547<br /><strong>Posted:</strong> 19 March 2004 at 6:30am<br /><br />Just assign an Id to each control you will search for and use it in the FindControl method:<br><br>Set ControlFile =&nbsp; CommandBars.ActiveMenuBar.FindControl(,ID_FILE_OPEN, ,<strong>True</strong>)<br>ControlFile.Caption = "Open File"<br>]]>
   </description>
   <pubDate>Fri, 19 Mar 2004 06:30:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=547&amp;PID=1396&amp;title=changing-menu-captions#1396</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Menu Capti&#111;ns : Hello! I have the following code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=547&amp;PID=1393&amp;title=changing-menu-captions#1393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=419">rdtcgriffin</a><br /><strong>Subject:</strong> 547<br /><strong>Posted:</strong> 19 March 2004 at 3:01am<br /><br /><P>Hello!</P><P>I have the following code to create the menu:</P><P>&nbsp;&nbsp;&nbsp; Set ControlView = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 1, "File", -1, False)<BR>&nbsp;&nbsp;&nbsp; With ControlView.CommandBar.Controls<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, 2, "New", -1, False)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, 3, "Open", -1, False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, 4, "Close", -1, False<BR>&nbsp;&nbsp;&nbsp; End With<BR></P><P>Then, later on I would lile to change the captions of the menu. For the main menu (File)&nbsp;I can change teh caption using:</P><P>&nbsp;&nbsp;&nbsp; CommandBars.ActiveMenuBar.Controls.Item(1).Caption = "FileX"</P><P>But for&nbsp;it's submenus, I get "Invalid procedure call or argument" error message when I try this:<BR>&nbsp;&nbsp;&nbsp; CommandBars.ActiveMenuBar.Controls.Item(2).Caption = "OpenX"</P><P>What method should I use so that I can change the captions? Also, is the solution the same for toolbars?</P><P>Thanks in advance!</P><P>Rommel</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 19 Mar 2004 03:01:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=547&amp;PID=1393&amp;title=changing-menu-captions#1393</guid>
  </item> 
 </channel>
</rss>