<?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 : SOLVED: Hopefully easy MDI question.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : SOLVED: Hopefully easy MDI question.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 19:59:54 +0000</pubDate>
  <lastBuildDate>Thu, 11 Sep 2008 08:35:12 +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=12132</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[SOLVED: Hopefully easy MDI question. : I saw this suggestion in another...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12132&amp;PID=40939&amp;title=solved-hopefully-easy-mdi-question#40939</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 12132<br /><strong>Posted:</strong> 11 September 2008 at 8:35am<br /><br />I saw this suggestion in another post, and I tried it without luck. However, for some weird reason, adding the "me." to the call seems to have done it. <br><br>Thanks so much!!<br>]]>
   </description>
   <pubDate>Thu, 11 Sep 2008 08:35:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12132&amp;PID=40939&amp;title=solved-hopefully-easy-mdi-question#40939</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Hopefully easy MDI question. :  Hi!In your Initialize Docking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12132&amp;PID=40915&amp;title=solved-hopefully-easy-mdi-question#40915</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 12132<br /><strong>Posted:</strong> 10 September 2008 at 7:19pm<br /><br />Hi!<br><br>In your Initialize Docking Pane add the red line:<br><br><font size="2" face="Courier New, Courier, mono">Sub </font><font size="1" face="Courier New, Courier, mono"><font face="Arial, Helvetica, sans-serif"><font size="2" face="Courier New, Courier, mono">InitializeDockingPanes()<br><br>&nbsp;&nbsp;&nbsp; ...<br><font face="Courier New, Courier, mono"><br>&nbsp;<font color="#ff0000"><b>&nbsp;&nbsp; </b></font></font></font></font></font><font color="#ff0000"><b><font size="2" face="Courier New, Courier, mono">dockMain</font><font face="Courier New, Courier, mono">.SetCommandBars Me<font size="2" face="Courier New, Courier, mono">.</font></font><font size="2" face="Courier New, Courier, mono">CommandMain</font><br></b></font><font size="2" face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; dockMain.PaintManager.SplitterStyle = PaneSplitterGripperOfficeXP</font><br><font size="1" face="Courier New, Courier, mono"><font face="Arial, Helvetica, sans-serif"><font size="2" face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; ...<br><br>End Sub<br></font></font></font>]]>
   </description>
   <pubDate>Wed, 10 Sep 2008 19:19:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12132&amp;PID=40915&amp;title=solved-hopefully-easy-mdi-question#40915</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Hopefully easy MDI question. :     Ok, so I have what HAS...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12132&amp;PID=40909&amp;title=solved-hopefully-easy-mdi-question#40909</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 12132<br /><strong>Posted:</strong> 10 September 2008 at 2:41pm<br /><br />Ok, so I have what HAS to be a simple question...<br><br>I have an MDI form with a docking control and a commandbar control.<br>The 2 docking panes are being link to 2 borderless forms. pretty basic.<br><br>The commandBar simply has a FILE menu, code taken from one of the demo projects.<br><br>When I resize the splitter to increase/decrease the width of the pane(s), Everything in the panes resizes properly, however, the client area of the MDI form does not resize. when you increase the pane width, the splitter is visibly hidden underneath the MDI client area. When the width is decreased, there is a gap between the docking panes and the MDI client area.<br><br>Very Odd.<br><br>I've attached the code in a ZIP file, but it would be pretty easy to just copy the code, its VERY little.<br><br><a href="http://www.jas&#111;ngoldberg.com/files/MightyApp_Prototype.zip" target="_blank">http://www.jasongoldberg.com/files/MightyApp_Prototype.zip</a><br><br><br><font size="3"><b>CODE:</b></font><br><br><br><font face="Courier New, Courier, mono" size="1"><font face="Arial, Helvetica, sans-serif">Option Explicit<br><br>Dim itemPane As Pane<br>Dim propertyPane As Pane<br><br>Dim MenuBar As MenuBar<br><br>Private Sub MDIForm_Load()<br>&nbsp; Call InitializeDockingPanes<br>&nbsp; Call InitializeCommandBar<br>End Sub<br><br>Sub InitializeCommandBar()<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CommandBarsGlobalSettings.App = App<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Dim Control As CommandBarControl<br>&nbsp;&nbsp;&nbsp; Dim ControlFile As CommandBarPopup, ControlEdit As CommandBarPopup, ControlView As CommandBarPopup<br>&nbsp;&nbsp;&nbsp; Dim ControlHelp As CommandBarPopup<br>&nbsp;&nbsp;&nbsp; Dim custControl As CommandBarControlCustom<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Set ControlFile = CommandMain.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "&amp;File")<br>&nbsp;&nbsp;&nbsp; With ControlFile.CommandBar.Controls<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_NEW, "&amp;New"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_OPEN, "&amp;Open"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_CLOSE, "&amp;Close"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_SAVE, "&amp;Save"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, ID_FILE_PRINT, "&amp;Print")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.BeginGroup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_PRINT_SETUP, "Print Set&amp;up..."<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, ID_FILE_EXIT, "&amp;Exit")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.BeginGroup = True<br>&nbsp;&nbsp;&nbsp; End With<br><br>&nbsp;&nbsp;&nbsp; CommandMain.AddImageList imlToolbarIcons<br>End Sub<br><br><br>Sub InitializeDockingPanes()<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set itemPane = dockMain.CreatePane(1, 200, 120, DockLeftOf)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; itemPane.Title = "Objects"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; itemPane.Options = PaneNoCloseable + PaneNoHideable<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set propertyPane = dockMain.CreatePane(2, 200, 120, DockBottomOf, itemPane)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; propertyPane.Title = "Properties"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; propertyPane.Options = PaneNoCloseable + PaneNoHideable<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dockMain.PaintManager.SplitterStyle = PaneSplitterGripperOfficeXP<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dockMain.PaintManager.SplitterColor = &amp;HE0E0E0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dockMain.Options.LunaColors = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dockMain.VisualTheme = ThemeOffice2003<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dockMain.TabPaintManager.OneNoteColors = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dockMain.PanelPaintManager.OneNoteColors = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dockMain.TabPaintManager.ClientFrame = xtpTabFrameNone<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dockMain.EnableKeyboardNavigate PaneKeyboardUseAll&nbsp;  <br><br></font></font><font face="Courier New, Courier, mono" size="1"><font face="Arial, Helvetica, sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dockMain.RecalcLayout</font></font><br><font face="Courier New, Courier, mono" size="1"><font face="Arial, Helvetica, sans-serif">End Sub<br><br>Private Sub dockMain_AttachPane(ByVal Item As XtremeDockingPane.IPane)<br>&nbsp; On Error Resume Next<br>&nbsp; Select Case Item.Id<br>&nbsp;&nbsp;&nbsp; Case 1 'Items<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Handle = frmItemTree.hWnd<br>&nbsp;&nbsp;&nbsp; Case 2 'Properties<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Handle = frmProperties.hWnd<br>&nbsp; End Select<br>End Sub<br><br>Private Sub MDIForm_Unload(Cancel As Integer)<br>&nbsp; End<br>End Sub</font><br></font><br>]]>
   </description>
   <pubDate>Wed, 10 Sep 2008 14:41:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12132&amp;PID=40909&amp;title=solved-hopefully-easy-mdi-question#40909</guid>
  </item> 
 </channel>
</rss>