<?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 : Modify Main Menu textes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Modify Main Menu textes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Apr 2026 02:46:59 +0000</pubDate>
  <lastBuildDate>Thu, 10 May 2007 01:35:16 +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=7058</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[Modify Main Menu textes : Hai,  I have some idea(just what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7058&amp;PID=22738&amp;title=modify-main-menu-textes#22738</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 7058<br /><strong>Posted:</strong> 10 May 2007 at 1:35am<br /><br />Hai,<DIV>&nbsp;&nbsp; I have some idea(just what I have understand) about your query, just see the below code</DIV><FONT color=#008000 size=2><P>// Get a pointer to the command bars object.</P></FONT><FONT size=2><P>CXTPCommandBars* pCommandBars = pMainFrame-&gt;GetCommandBars();</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(pCommandBars == NULL)</P><P>{</P><P>TRACE0(</FONT><FONT color=#800000 size=2>"Failed to create command bars object.\n"</FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>; </FONT><FONT color=#008000 size=2>// fail to create</P></FONT><FONT size=2><P>}</P><P></FONT><FONT color=#008000 size=2>// Get the menu bar</P></FONT><FONT size=2><P>CXTPMenuBar* pMenuBar = pCommandBars-&gt;GetMenuBar();</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(pMenuBar == NULL)</P><P>{</P><P>TRACE0(</FONT><FONT color=#800000 size=2>"Failed to create menu bar.\n"</FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>; </FONT><FONT color=#008000 size=2>// fail to create</P></FONT><FONT size=2><P>}</P><P>pMenuBar-&gt;LoadMenu(pModifiedMenu,1); -- This pModifiedMenu is what the runtime menu you are going to load.</P><DIV></DIV><P>&nbsp;</P><P>It is working fine for me. Try it out.</FONT></P>]]>
   </description>
   <pubDate>Thu, 10 May 2007 01:35:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7058&amp;PID=22738&amp;title=modify-main-menu-textes#22738</guid>
  </item> 
  <item>
   <title><![CDATA[Modify Main Menu textes : Hello,  something like pCont...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7058&amp;PID=22599&amp;title=modify-main-menu-textes#22599</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7058<br /><strong>Posted:</strong> 07 May 2007 at 7:39am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>something like pControls-&gt;GetAt(2)-&gt;SetCaption("...");</DIV><DIV>&nbsp;</DIV><DIV>but if your application supports customization - better don't use predefine indexes for this - user can copy/delete some command.</DIV><DIV>&nbsp;</DIV><DIV>I very recommend you use Actions to localize commandbars - see</DIV><DIV>Samples\CommandBars\ActionsSample&nbsp; and</DIV><DIV>Samples\CommandBars\ScribbleMultiLang </DIV><DIV>&nbsp;</DIV><DIV>check scribble sample - if you even copy/delete "File" menu - it will be localized anyway.</DIV>]]>
   </description>
   <pubDate>Mon, 07 May 2007 07:39:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7058&amp;PID=22599&amp;title=modify-main-menu-textes#22599</guid>
  </item> 
  <item>
   <title><![CDATA[Modify Main Menu textes : Hi,  I need to change the textes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7058&amp;PID=22597&amp;title=modify-main-menu-textes#22597</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2977">Bert1</a><br /><strong>Subject:</strong> 7058<br /><strong>Posted:</strong> 07 May 2007 at 2:43am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I need to change the textes of the main menu, how can I do this?</DIV><DIV>Because the GetMenu() function is not supported I don't find a solution for it! For the submenus I'm using <FONT size=2></DIV><P>CXTPControl* pControl = pControls-&gt;FindControl(xtpControlButton, ID_FILE_NEW, FALSE, TRUE);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> ( pControl != NULL )</P><DIV>{</DIV><DIV>pControl-&gt;SetCaption(szDummy);</DIV><P>}</P><DIV></DIV><DIV>but I need the ID of the control for this function&nbsp;which is not available for the top menu items. Because my App is supporting multi languages I need to modify the menus on runtime.</DIV><DIV>Can somebody help my?</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 07 May 2007 02:43:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7058&amp;PID=22597&amp;title=modify-main-menu-textes#22597</guid>
  </item> 
 </channel>
</rss>