<?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 : [SOLVED] HOWTO: Remove popup menu item</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : [SOLVED] HOWTO: Remove popup menu item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 03:55:17 +0000</pubDate>
  <lastBuildDate>Mon, 12 Jan 2009 04:51: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=13112</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[[SOLVED] HOWTO: Remove popup menu item : Thanks Oleg!I&amp;#039;ll give it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44464&amp;title=solved-howto-remove-popup-menu-item#44464</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 13112<br /><strong>Posted:</strong> 12 January 2009 at 4:51am<br /><br />Thanks Oleg!<br><br>I'll give it a try - perhaps the effort isn't worth the result, but customer is king!<br>]]>
   </description>
   <pubDate>Mon, 12 Jan 2009 04:51:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44464&amp;title=solved-howto-remove-popup-menu-item#44464</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Remove popup menu item : Hi,   Hard way is manually call...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44419&amp;title=solved-howto-remove-popup-menu-item#44419</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13112<br /><strong>Posted:</strong> 10 January 2009 at 9:56am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>Hard way is manually call pControl-&gt;SetBeginGroup(TRUE/FALSE) for visible item.</DIV><DIV>for example with Action you can find all instances of control (pAction-&gt;GetControl(i) and update its SetBeginGroup.</DIV>]]>
   </description>
   <pubDate>Sat, 10 Jan 2009 09:56:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44419&amp;title=solved-howto-remove-popup-menu-item#44419</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Remove popup menu item :   oleg wrote:Hi,1. You said you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44404&amp;title=solved-howto-remove-popup-menu-item#44404</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 13112<br /><strong>Posted:</strong> 09 January 2009 at 4:16pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><p>Hi,</p><div>1. You said you use actions for menu items - if you add Id for Popup item you will be able hide it with actions too.</div><div></td></tr></table><br>OK! Once again many thanks ...<br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><br></div><div>2. Sorry there is no easy way :(</div></td></tr></table><br>And the hard way? Any hints?<br>]]>
   </description>
   <pubDate>Fri, 09 Jan 2009 16:16:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44404&amp;title=solved-howto-remove-popup-menu-item#44404</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Remove popup menu item : Hi, 1. You said you use actions...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44401&amp;title=solved-howto-remove-popup-menu-item#44401</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13112<br /><strong>Posted:</strong> 09 January 2009 at 3:55pm<br /><br /><P>Hi,</P><DIV>1. You said you use actions for menu items - if you add Id for Popup item you will be able hide it with actions too.</DIV><DIV>&nbsp;</DIV><DIV>2. Sorry there is no easy way :(</DIV>]]>
   </description>
   <pubDate>Fri, 09 Jan 2009 15:55:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44401&amp;title=solved-howto-remove-popup-menu-item#44401</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Remove popup menu item : Many thanks Oleg!Assigning the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44398&amp;title=solved-howto-remove-popup-menu-item#44398</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 13112<br /><strong>Posted:</strong> 09 January 2009 at 3:05pm<br /><br />Many thanks Oleg!<br><br>Assigning the ID to the popup item in resource file works fine.<img src="http://1.2.3.11/bmi/forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle"><img src="http://1.2.3.12/bmi/forum.codejock.com/smileys/smiley10.gif" border="0" align="absmiddle"><br>But now two more questions:<br><br>1. What do you mean with "assign action for popup menu item"? How can this be done?<br>2. Let's suppose a menu defined in resource as shown<br><br><table width="99%"><tr><td><pre class="BBcode">...<br>MENUITEM "Item 1", ID_ITEM1<br>MENUITEM "Item 2", ID_ITEM2<br>MENUITEM SEPARATOR<br>MENUITEM "Item 3", ID_ITEM3<br>MENUITEM SEPARATOR<br>MENUITEM "Item 4", ID_ITEM4<br>MENUITEM "Item 5", ID_ITEM5<br>...</pre></td></tr></table><br>Now I remove ID_ITEM2, ID_ITEM3 and ID_ITEM4 in code by CXTPControlAction::SetVisible(FALSE) actions. Unfortunately both of the separators are also removed. How can I prevent the second separator from being removed when hiding the both mentioned items?<br><br>Thanks in advance<br>]]>
   </description>
   <pubDate>Fri, 09 Jan 2009 15:05:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44398&amp;title=solved-howto-remove-popup-menu-item#44398</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Remove popup menu item : Hi,  Most easy way is also add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44349&amp;title=solved-howto-remove-popup-menu-item#44349</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13112<br /><strong>Posted:</strong> 09 January 2009 at 1:57am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Most easy way is also add some Id or assign Action for popup menu item.</DIV><DIV>&nbsp;</DIV><DIV>In resource editor you can add Id in caption to separate it with "\t" :</DIV><DIV>&nbsp;</DIV><DIV>"File\t100"</DIV><DIV>it will assign 100 id&nbsp;to File item.</DIV>]]>
   </description>
   <pubDate>Fri, 09 Jan 2009 01:57:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44349&amp;title=solved-howto-remove-popup-menu-item#44349</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Remove popup menu item : Update:Now I&amp;#039;m using actions...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44317&amp;title=solved-howto-remove-popup-menu-item#44317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 13112<br /><strong>Posted:</strong> 08 January 2009 at 11:31am<br /><br />Update:<br><br>Now I'm using actions to show/hide menu items on startup. But I still have the problem to not be able to remove empty popup menu items! <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" align="absmiddle"><br>]]>
   </description>
   <pubDate>Thu, 08 Jan 2009 11:31:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44317&amp;title=solved-howto-remove-popup-menu-item#44317</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Remove popup menu item : Hi;Does anyone know how to remove...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44310&amp;title=solved-howto-remove-popup-menu-item#44310</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 13112<br /><strong>Posted:</strong> 08 January 2009 at 9:25am<br /><br />Hi;<br><br>Does anyone know how to remove a popup menu item? I know all the Add()/Remove() functions but my biggest problem is how to find the popup menu item within the collection of all CXTPControl(s).<br><br>I use the code in OnInitCommandsPopup:<br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; // get the list of commands for the popup.<br>&nbsp;&nbsp;&nbsp; CXTPControls* pCommandList = pCommandBar-&gt;GetControls();<br><br>&nbsp;&nbsp;&nbsp; // Remove "New" menu item from the File menu.<br>&nbsp;&nbsp;&nbsp; CXTPControl* pCommandNew = pCommandList-&gt;FindControl(...); <strong>?</strong><br>&nbsp;&nbsp;&nbsp; if (pCommandNew)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCommandList-&gt;Remove(pCommandNew);</pre></td></tr></table><br><br>but I don't know what to set in FindControl to get the pointer to the popup item?<br>Within the submenu I have several popup menu items so I can't look only for an item of type xtpControlPopup and additional the caption of the item depends on user selected languages.<br><br>Any help is very welcome!<br>]]>
   </description>
   <pubDate>Thu, 08 Jan 2009 09:25:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13112&amp;PID=44310&amp;title=solved-howto-remove-popup-menu-item#44310</guid>
  </item> 
 </channel>
</rss>