<?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 : Ribbon Group selection persistence</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Ribbon Group selection persistence]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:04:01 +0000</pubDate>
  <lastBuildDate>Mon, 08 Oct 2012 12:00:31 +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=20210</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[Ribbon Group selection persistence : Hi there, hoping someone here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=20210&amp;PID=69046&amp;title=ribbon-group-selection-persistence#69046</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7678">jharvey</a><br /><strong>Subject:</strong> 20210<br /><strong>Posted:</strong> 08 October 2012 at 12:00pm<br /><br />Hi there, hoping someone here can help me out with an issue I'm having with RibbonGroups and Custom Controls.<div><br></div><div>Here's some code:</div><div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>RibbonGroup rg = tab.Groups.AddGroup("Links", GROUP_ID);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>foreach (PictureBox picBox in picBoxArray)</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>CommandBarControlCustom&nbsp;cc =&nbsp;rg.Add(XTPControlType.xtpControlCustom, ITEM_ID, String.Empty);</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>cc.Handle = p.Handle.ToInt32();</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div></div><div><br></div><div>That's a cut down version of the code I'm using to add a set of pictures to a group on a CommandBar. Each PictureBox has a Click event which opens up a new form to display a website.</div><div><br></div><div>Everything gets added, appears and works fine when my main window is large enough for all the pictures to be displayed. However, if I shrink my main window to the point where all the pictures disappear and my group automatically turns into a popup group then things start playing up. If I now click on my 'Links' group and click on a PictureBox, the website opens as intended but,&nbsp;</div><div>1) the popup group remains on screen until I click away from it, and</div><div>2) the 'Links' group remains darkened as if selected and is now unresponsive to mouse clicks.</div><div><br></div><div><img src="uploads/7678/Links.png" height="111" width="92" border="0" /><br></div><div><br></div><div>If I make my main window larger again, then the pictures reappear and I can click on them as before, make it smaller again and I get my 'selected' Links group back.</div><div><br></div><div>Any help appreciated.</div><div><br></div><div>Thanks in advance!</div>]]>
   </description>
   <pubDate>Mon, 08 Oct 2012 12:00:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=20210&amp;PID=69046&amp;title=ribbon-group-selection-persistence#69046</guid>
  </item> 
 </channel>
</rss>