<?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 : Display menu in code</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Display menu in code]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 06:39:55 +0000</pubDate>
  <lastBuildDate>Sun, 30 Aug 2009 12:40:43 +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=12394</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[Display menu in code : Thank you for super quick reply.I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12394&amp;PID=52570&amp;title=display-menu-in-code#52570</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 12394<br /><strong>Posted:</strong> 30 August 2009 at 12:40pm<br /><br />Thank you for super quick reply.<br><br>I have downloaded v13.1.0 and this behaves differently to my previous test. <br>I think this has solved the problem for me.<br><br>BUT it also shows new behaviour (which I do like, but am not sure how or why it is working -- ie. is there a flag to turn on/off this behaviour? Why does it not do this when called from code?).<br><br>TEST 1:<br>Click on the System Button with mouse. Main Menu is displayed.<br>Move mouse off the menu area-- menu remains displayed.<br>Move mouse over Quick Access Bar -- menu disappears.<br>Move mouse back over System Button -- menu reappears &lt;&lt;&lt;&lt;&lt; This is new behaviour.&nbsp; I like it.<br><br>TEST2:<br>Make Main appear on screen using code&nbsp; .Execute call.<br>Move mouse off the menu area -- menu remains displayed. <br>Move mouse over Quick Access Bar -- menu does not disappear.&nbsp;&nbsp; ****DIFFERENT TO ABOVE****<br>Move mouse back over System Button. no change.<br><br><br><br>So you can see different behaviour if menu displayed with mouse click, compared to if menu displayed in code.<br>(But my original problem has now been solved.)<br><br>I would just like to know if the above difference (ie. menu appears automatically when mouse moved over System Button) can be turned on or off?<br><br>]]>
   </description>
   <pubDate>Sun, 30 Aug 2009 12:40:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12394&amp;PID=52570&amp;title=display-menu-in-code#52570</guid>
  </item> 
  <item>
   <title><![CDATA[Display menu in code : Hi Chris,I&amp;#039;ve tried this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12394&amp;PID=52569&amp;title=display-menu-in-code#52569</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 12394<br /><strong>Posted:</strong> 30 August 2009 at 12:00pm<br /><br />Hi Chris,<br><br>I've tried this with 13.1 and the SystemButton menu disappears when the user moves the mouse over other CommandBar controls (e.g. QuickAccess), but not when moved over the non-commandbar portion of the form in both cases that you mention (user click, or code Execute call). Essentially, I see no difference in behaviour between user click and Execute calls.<br><br>I also can't see the problem where the menu disappears on "non-valid item" click (although, I'm not sure what a non-valid item is...for my tests, I tried clicking a separator bar drawn via .BeginGroup = True, and the menu did not close). <br><br>Here's the sample code I used (CommandBar and CommandButton control on form):<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Option Explicit<br><br>Private mo_SysBtn As CommandBarControl<br>Private mo_Rbn As RibbonBar<br><br>Private Sub Command1_Click()<br>&nbsp;&nbsp; mo_SysBtn.Execute<br>&nbsp;&nbsp; ' Also tried mo_Rbn.ControlSystemButton.Execute with no difference in behaviour<br>End Sub<br><br>Private Sub Form_Load()<br>&nbsp;&nbsp; With Me.CommandBars1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableOffice2007Frame True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .VisualTheme = xtpThemeRibbon<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set mo_Rbn = .AddRibbonBar("Main")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With mo_Rbn<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Controls.Add xtpControlButton, 200, "Test"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set mo_SysBtn = .AddSystemButton<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With mo_SysBtn<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Id = 1200<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .CommandBar<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Controls.Add xtpControlButton, 100, "Test"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Controls.Add xtpControlButton, 101, "Test2"<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Controls.Add(xtpControlButton, 102, "Test3")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .BeginGroup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Controls.Add xtpControlButton, 103, "Test4"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableFrameTheme<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PaintManager.RefreshMetrics<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RecalcLayout<br>&nbsp;&nbsp; End With<br>End Sub<br></pre></td></tr></table><br><br>Can you provide a sample that demonstrates the problems you are experiencing so i can test it?<br>]]>
   </description>
   <pubDate>Sun, 30 Aug 2009 12:00:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12394&amp;PID=52569&amp;title=display-menu-in-code#52569</guid>
  </item> 
  <item>
   <title><![CDATA[Display menu in code :    chrisABC wrote:I have a ribbonbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12394&amp;PID=52563&amp;title=display-menu-in-code#52563</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 12394<br /><strong>Posted:</strong> 30 August 2009 at 4:57am<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 />I have a ribbonbar with SystemButton.<br><br>When I click the SystemButton, my popdown Menu appears, and remains on screen even if I move the mouse off the menu. This is good.<br><br>1.&nbsp; How can I make the popdown Menu appear like this using code?<br>&nbsp;&nbsp;&nbsp;&nbsp; (I have tried&nbsp; ...ControlSystemButton.execute&nbsp; and this does make<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the Menu appear, but as soon as I move the mouse off it, the<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Menu disappears)<br><br>2.&nbsp; When I click on a non-valid item on the popdown Menu, the Menu<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disappears.&nbsp; How can I get it to remain on screen?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (I have tried&nbsp; ....ControlSystemButtob.CloseSubMenuOnClick = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; but this did not affect it).<br><br><br><br></td></tr></table><br><br>I still would like an answer to this.&nbsp; (End user reminded me that my app is annoying to use because of this :-)<br>]]>
   </description>
   <pubDate>Sun, 30 Aug 2009 04:57:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12394&amp;PID=52563&amp;title=display-menu-in-code#52563</guid>
  </item> 
  <item>
   <title><![CDATA[Display menu in code : Still no replies to this question.Is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12394&amp;PID=49663&amp;title=display-menu-in-code#49663</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 12394<br /><strong>Posted:</strong> 05 June 2009 at 4:16am<br /><br />Still no replies to this question.<br><br>Is this a really really difficult thing to do? <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0" align="absmiddle"><br>]]>
   </description>
   <pubDate>Fri, 05 Jun 2009 04:16:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12394&amp;PID=49663&amp;title=display-menu-in-code#49663</guid>
  </item> 
  <item>
   <title><![CDATA[Display menu in code : I have a ribbonbar with SystemButton.When...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12394&amp;PID=41863&amp;title=display-menu-in-code#41863</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 12394<br /><strong>Posted:</strong> 10 October 2008 at 5:43am<br /><br />I have a ribbonbar with SystemButton.<br><br>When I click the SystemButton, my popdown Menu appears, and remains on screen even if I move the mouse off the menu. This is good.<br><br>1.&nbsp; How can I make the popdown Menu appear like this using code?<br>&nbsp;&nbsp;&nbsp;&nbsp; (I have tried&nbsp; ...ControlSystemButton.execute&nbsp; and this does make<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the Menu appear, but as soon as I move the mouse off it, the<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Menu disappears)<br><br>2.&nbsp; When I click on a non-valid item on the popdown Menu, the Menu<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disappears.&nbsp; How can I get it to remain on screen?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (I have tried&nbsp; ....ControlSystemButtob.CloseSubMenuOnClick = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; but this did not affect it).<br><br><br><br>]]>
   </description>
   <pubDate>Fri, 10 Oct 2008 05:43:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12394&amp;PID=41863&amp;title=display-menu-in-code#41863</guid>
  </item> 
 </channel>
</rss>