<?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 : (WORKAROUND) MDI Tab Groups events</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : (WORKAROUND) MDI Tab Groups events]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 16:45:39 +0000</pubDate>
  <lastBuildDate>Fri, 04 Dec 2009 21:39: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=13128</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[(WORKAROUND) MDI Tab Groups events :      Bump... Can CJ confirm...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13128&amp;PID=55402&amp;title=workaround-mdi-tab-groups-events#55402</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1923">PPL1</a><br /><strong>Subject:</strong> 13128<br /><strong>Posted:</strong> 04 December 2009 at 9:39pm<br /><br />Bump... Can CJ confirm if this is a bug or not.<br><br>What's the purpose of a Workspace_SelectedChanged event if it does not fire when a different tab is selected ?<br><br>(current version still has this "behaviour")<br><br>BTW, the proposed workaround only works when the user actually "clicks" on the tab. For all other methods of selecting a different tab, this does not work (e.g. click on the contained form, keyboard, etc)<br><br>&#091;edit&#093; For those interested, until this is fixed, the way to go is using a timer and checking the Selected property. It changes as expected:<br><br>Private Sub FastTimer_Timer()<br>&nbsp; Dim TabID As Long, GroupID As Long<br>&nbsp; Static OldWorkspaceTabID As Long, OldWorkspaceGroupID As Long&nbsp;&nbsp; '2009-12: selectionchanged does not work between groups in 13.2<br>&nbsp; <br>&nbsp; TabID = Me.CB.TabWorkspace.Selected.Index<br>&nbsp; GroupID = Me.CB.TabWorkspace.FindGroup(Me.CB.TabWorkspace.Selected)<br>&nbsp; If TabID &lt;&gt; OldWorkspaceTabID Or GroupID &lt;&gt; OldWorkspaceGroupID Then<br>&nbsp; &nbsp;&nbsp; Me.WorkspaceSelectionChanged<br>&nbsp;&nbsp;&nbsp;&nbsp; OldWorkspaceTabID = TabID<br>&nbsp;&nbsp;&nbsp;&nbsp; OldWorkspaceGroupID = GroupID<br>&nbsp; end if<br>end sub<br><br>Public Sub WorkspaceSelectionChanged()<br>&nbsp;<br>&nbsp; Set FocusForm = Me.ActiveForm<br>&nbsp; ' use this FocusForm to reference the active tab <br>End Sub<br><br><br>]]>
   </description>
   <pubDate>Fri, 04 Dec 2009 21:39:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13128&amp;PID=55402&amp;title=workaround-mdi-tab-groups-events#55402</guid>
  </item> 
  <item>
   <title><![CDATA[(WORKAROUND) MDI Tab Groups events :   Using MDI Tabs the Workspace...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13128&amp;PID=44362&amp;title=workaround-mdi-tab-groups-events#44362</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13128<br /><strong>Posted:</strong> 09 January 2009 at 6:37am<br /><br />Using MDI Tabs the Workspace event&nbsp;&nbsp; _SelectedChanged is fired each time a different Tab is clicked by user. That is good.<br><br>But when I have several Groups of Tabs, the&nbsp;&nbsp; _SelectedChanged event does NOT always fire when user clicks different Tab if the Tab is in a different Group. It only behaves correctly if we stay in the same Group.<br><br>To explain better:&nbsp; It seems each Group retains its own "Current Tab". When user clicks on any "current Tab" the Changed event does not fire -- even if Tab is in a different Group.<br><br>I expect this is Working As Designed (ie. not a bug).&nbsp; But how can I detect when user clicks in a different Group ??&nbsp; eg. is there a Group_Changed event?<br>&nbsp;<br>WORKAROUND -- the Workspace_BeforeItemClick event is correctly fired for ALL times when user clicks on a Tab. Even if it is current Tab or in a different Group. So with a bit of logic I can use this event to get around the problem with&nbsp; _SelectedChanged event.<br><br>But please still comment if I have missed something or there is a better way.<br>]]>
   </description>
   <pubDate>Fri, 09 Jan 2009 06:37:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13128&amp;PID=44362&amp;title=workaround-mdi-tab-groups-events#44362</guid>
  </item> 
 </channel>
</rss>