<?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 : Menu item separator without using BeginGroup</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Menu item separator without using BeginGroup]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 15 Jun 2026 00:37:44 +0000</pubDate>
  <lastBuildDate>Wed, 06 May 2009 05:55:13 +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=11023</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[Menu item separator without using BeginGroup :     chrisABC wrote: Your cpu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=48705&amp;title=menu-item-separator-without-using-begingroup#48705</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=570">nighthawk</a><br /><strong>Subject:</strong> 11023<br /><strong>Posted:</strong> 06 May 2009 at 5:55am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by chrisABC" alt="Originally posted by chrisABC" style="vertical-align: text-bottom;" /> <strong>chrisABC wrote:</strong><br /><br /><br>Your cpu has too much spare time&nbsp; :-)<br></td></tr></table><br><br>I only need to check the controls when the program does something tochange one of the visibility settings.&nbsp; Looping through a few dozencontrols on such rare occasions is not a problem.<br><br><br>]]>
   </description>
   <pubDate>Wed, 06 May 2009 05:55:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=48705&amp;title=menu-item-separator-without-using-begingroup#48705</guid>
  </item> 
  <item>
   <title><![CDATA[Menu item separator without using BeginGroup :    nighthawk wrote:Iso I wrote...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=48672&amp;title=menu-item-separator-without-using-begingroup#48672</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 11023<br /><strong>Posted:</strong> 05 May 2009 at 3:27pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by nighthawk" alt="Originally posted by nighthawk" style="vertical-align: text-bottom;" /> <strong>nighthawk wrote:</strong><br /><br />Iso I wrote a function that loops through all the menus and toolbars and hide seperators when&nbsp; they are show up in these unwanted places.<br></td></tr></table><br>Your cpu has too much spare time&nbsp; :-)<br>]]>
   </description>
   <pubDate>Tue, 05 May 2009 15:27:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=48672&amp;title=menu-item-separator-without-using-begingroup#48672</guid>
  </item> 
  <item>
   <title><![CDATA[Menu item separator without using BeginGroup : I found the following workaround....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=48525&amp;title=menu-item-separator-without-using-begingroup#48525</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=570">nighthawk</a><br /><strong>Subject:</strong> 11023<br /><strong>Posted:</strong> 30 April 2009 at 9:06pm<br /><br />I found the following workaround.&nbsp; Adding a menu item using the following code creates a separator independent of any menu item:&nbsp; <br><br><br>Dim Control As XtremeCommandBars.CommandBarControl<br><br>Set Control = CommandBar.Controls.Add(xtpControlGallery, Id, "")<br>Control.Height = 0<br>Control.Width = 0<br>Control.BeginGroup = True<br><br><br>(This also works for toolbar separators)<br><br>The only problem I have encountered is that if there is a situation where a lot of normal menu items are hidden, I can sometimes end up with separators in unwanted spots.&nbsp; For example, sometimes I can end up with a separator in the very first or last position of a menu.&nbsp; Also, I can sometimes end up with two separators next to each other.&nbsp; This doesn't look good so I wrote a function that loops through all the menus and toolbars and hide seperators when&nbsp; they are show up in these unwanted places.<br>]]>
   </description>
   <pubDate>Thu, 30 Apr 2009 21:06:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=48525&amp;title=menu-item-separator-without-using-begingroup#48525</guid>
  </item> 
  <item>
   <title><![CDATA[Menu item separator without using BeginGroup : I&amp;#039;m having exactly the same...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=48523&amp;title=menu-item-separator-without-using-begingroup#48523</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4665">stefanadelbert</a><br /><strong>Subject:</strong> 11023<br /><strong>Posted:</strong> 30 April 2009 at 7:50pm<br /><br />I'm having exactly the same issue, and definitely don't want to have to do the extra housekeeping of applying the separator to the next applicable menu item.<br><br>Is there any other way of achieving this?<br>]]>
   </description>
   <pubDate>Thu, 30 Apr 2009 19:50:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=48523&amp;title=menu-item-separator-without-using-begingroup#48523</guid>
  </item> 
  <item>
   <title><![CDATA[Menu item separator without using BeginGroup : Unfortunately, a blank label still...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=37546&amp;title=menu-item-separator-without-using-begingroup#37546</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=570">nighthawk</a><br /><strong>Subject:</strong> 11023<br /><strong>Posted:</strong> 27 June 2008 at 4:38pm<br /><br />Unfortunately, a blank label still leaves a space where the caption would normally be displayed.&nbsp; I don't want any spacing between the stand-alone group separator line and the menu buttons above and below.]]>
   </description>
   <pubDate>Fri, 27 Jun 2008 16:38:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=37546&amp;title=menu-item-separator-without-using-begingroup#37546</guid>
  </item> 
  <item>
   <title><![CDATA[Menu item separator without using BeginGroup : Any specific reason why you would...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=37135&amp;title=menu-item-separator-without-using-begingroup#37135</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 11023<br /><strong>Posted:</strong> 20 June 2008 at 8:23pm<br /><br />Any specific reason why you would want to do this, If you like the "Aqua" look, you can just add another control in the menu, maybe a label perhaps? Make it's caption blank, and disable it. It will be there, in the order you have loaded your controls.]]>
   </description>
   <pubDate>Fri, 20 Jun 2008 20:23:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=37135&amp;title=menu-item-separator-without-using-begingroup#37135</guid>
  </item> 
  <item>
   <title><![CDATA[Menu item separator without using BeginGroup : I have a proposal for a new feature:It...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=36670&amp;title=menu-item-separator-without-using-begingroup#36670</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=570">nighthawk</a><br /><strong>Subject:</strong> 11023<br /><strong>Posted:</strong> 13 June 2008 at 8:41am<br /><br />I have a proposal for a new feature:<br><br>It is very frustrating for me to have the menu/toolbar separator attached to a specific menu item (by setting Control.BeginGroup = True).&nbsp; There are a number of places in my programs where I change the visibility of individual menu items during runtime and if I hide the first menu item in a group, I have to go through and change the BeginGroup property on the next visible menu item.&nbsp; This is frustrating and can get complicated when there are lots of menu items that change visibility.<br><br>I would love it if you can make it possible to add a separator that floats in a specific spot.&nbsp; For example, the built-in VB6 menu editor does not attach the separator to any other menu item so I can hide the menu items above and below the separator without effecting the separator itself.&nbsp; One way this could be done is to set aside a special menu id value that will add a separator in that position:<br><br>CommandBar.Controls.Add(xtpControlButton, 1, "Item1", -1, False)<br>CommandBar.Controls.Add(xtpControlButton, SEPARATOR_ID, "-", -1, False)<br>CommandBar.Controls.Add(xtpControlButton, 2, "Item2", -1, False)<br>CommandBar.Controls.Add(xtpControlButton, 3, "Item3", -1, False)<br><br>In the above example, I can hide Item2 at runtime and still have the separator dividing Item1 and Item3.<br><br>Just a thought.<br>]]>
   </description>
   <pubDate>Fri, 13 Jun 2008 08:41:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11023&amp;PID=36670&amp;title=menu-item-separator-without-using-begingroup#36670</guid>
  </item> 
 </channel>
</rss>