<?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 : MDI Window list</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : MDI Window list]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 10:43:14 +0000</pubDate>
  <lastBuildDate>Thu, 06 Mar 2014 10:17:46 +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=14576</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[MDI Window list : Hi...Yeah I know this is 2014...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14576&amp;PID=72317&amp;title=mdi-window-list#72317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 14576<br /><strong>Posted:</strong> 06 March 2014 at 10:17am<br /><br />Hi...<br><br>Yeah I know this is 2014 and this post was originally posted in 2009, however this issue is still very well much alive!<br><br>So, I have decided to share my workaround to resolve this if anyone else stumbles upon this and has the same issue!!<br><br>This replaces the WINDOWLIST method supplied by Codejock as it would not corerctly show all forms.<br><br>PS. This solution is C#.Net, but it should be quite easy to convert over to VB.Net.<br><br><font color="#FF0000"><b>Note:</b></font> The .IsNull() &amp; .Includes() are my own extension methods. Simply convert this to:<br><br><table width="99%"><tr><td><pre class="BBcode">e.commandBar.Parent != null<br><br>if (e.commandBar.Controls.Id != 1000 &amp;&amp; e.commandBar.Controls.Id != 1001 &amp;&amp; e.commandBar.Controls.Id != 1002)</pre></td></tr></table><br>The above id's are described below, I simply didn't wish to delete them when building the Window List. <br><br><table width="99%"><tr><td><pre class="BBcode"><br>private void CommandBars_Execute(object sender, AxXtremeCommandBars._DCommandBarsEvents_ExecuteEvent e)<br>{<br>&nbsp;&nbsp;&nbsp; switch (e.control.Id)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... // All your commandbar execution code goes above here<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; default:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Activate the selected Window List Form.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; Workspace.ItemCount; i++)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (Workspace.Item(i).Caption == e.control.Caption)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Workspace.Item(i).Selected = true;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>private void CommandBars_InitCommandsPopup(object sender, AxXtremeCommandBars._DCommandBarsEvents_InitCommandsPopupEvent e)<br>{<br>&nbsp;&nbsp;&nbsp; // Build the Window List of Open Mdi Child Forms<br>&nbsp;&nbsp;&nbsp; if (!e.commandBar.Parent.IsNull())<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (e.commandBar.Parent.Caption == "Window")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Delete all menu's apart from Cascade, Arrange Horizontally &amp; Arrange Vertically<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (int i = e.commandBar.Controls.Count; i &gt;= 1; i--)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!e.commandBar.Controls.Id.Includes(1000, 1001, 1002))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; e.commandBar.Controls.Delete();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Get the Active Mdi Child Form<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Form frmActiveForm = this.ActiveMdiChild;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Build the Open Window List<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int x = 1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; foreach (Form frm in this.MdiChildren)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CommandBarControl ctrl = e.commandBar.Controls.Add(XTPControlType.xtpControlButton, x, frm.Text.Trim());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ctrl.BeginGroup = (x == 1 ? true : false);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ctrl.Checked = (frmActiveForm.Text == ctrl.Caption ? true : false);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; x++;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br></pre></td></tr></table> <em><em><br></em></em>]]>
   </description>
   <pubDate>Thu, 06 Mar 2014 10:17:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14576&amp;PID=72317&amp;title=mdi-window-list#72317</guid>
  </item> 
  <item>
   <title><![CDATA[MDI Window list :  This I have done, but it is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14576&amp;PID=50161&amp;title=mdi-window-list#50161</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4182">rplp4</a><br /><strong>Subject:</strong> 14576<br /><strong>Posted:</strong> 21 June 2009 at 1:51pm<br /><br /><FONT size=2><DIV>This I have done, but it is only tracking the last opened window.&nbsp;&nbsp; I am using vb.net 2008 on a 64bit system if this matters.</DIV><DIV>&nbsp;</DIV><DIV>ControlPopup.CommandBar.Controls.Add(XtremeCommandBars.XTPControlType.xtpControlButton, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>CInt</FONT></FONT><FONT size=2>(XtremeCommandBars.XTPCommandBarsSpecialCommands.XTP_ID_WINDOWLIST), </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Item 1"</FONT></FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>False</FONT></FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>False</FONT></FONT><FONT size=2>)</DIV></FONT>]]>
   </description>
   <pubDate>Sun, 21 Jun 2009 13:51:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14576&amp;PID=50161&amp;title=mdi-window-list#50161</guid>
  </item> 
  <item>
   <title><![CDATA[MDI Window list : You simply add a command with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14576&amp;PID=50158&amp;title=mdi-window-list#50158</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 14576<br /><strong>Posted:</strong> 21 June 2009 at 12:36pm<br /><br />You simply add a command with ID XTP_ID_WINDOWLIST and the commandbars will keeps all open windows in the list for you.]]>
   </description>
   <pubDate>Sun, 21 Jun 2009 12:36:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14576&amp;PID=50158&amp;title=mdi-window-list#50158</guid>
  </item> 
  <item>
   <title><![CDATA[MDI Window list : Can anyone tell me where and how...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14576&amp;PID=50128&amp;title=mdi-window-list#50128</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4182">rplp4</a><br /><strong>Subject:</strong> 14576<br /><strong>Posted:</strong> 19 June 2009 at 1:19pm<br /><br />Can anyone tell me where and how the open documents is added to the window list? <DIV>&nbsp;</DIV><DIV>I am tring to make a MDI text editor.&nbsp;&nbsp;&nbsp;&nbsp; I can not see how the window list is being updated.</DIV><DIV>&nbsp;</DIV><DIV>I am using VB.net 2008</DIV>]]>
   </description>
   <pubDate>Fri, 19 Jun 2009 13:19:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14576&amp;PID=50128&amp;title=mdi-window-list#50128</guid>
  </item> 
 </channel>
</rss>