<?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 : Can&#039;t edit controls in docked pane</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Can&#039;t edit controls in docked pane]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 21:11:08 +0000</pubDate>
  <lastBuildDate>Sun, 04 May 2008 06:52:06 +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=10485</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[Can&#039;t edit controls in docked pane : redfin,glad you were to solve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34636&amp;title=cant-edit-controls-in-docked-pane#34636</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 10485<br /><strong>Posted:</strong> 04 May 2008 at 6:52am<br /><br />redfin,<br><br>glad you were to solve your problems.<br><br><br>]]>
   </description>
   <pubDate>Sun, 04 May 2008 06:52:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34636&amp;title=cant-edit-controls-in-docked-pane#34636</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t edit controls in docked pane : Hi younicke,  Thanks for the reply.  The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34635&amp;title=cant-edit-controls-in-docked-pane#34635</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3873">RedFin</a><br /><strong>Subject:</strong> 10485<br /><strong>Posted:</strong> 04 May 2008 at 6:49am<br /><br />Hi younicke,<br /><br />Thanks for the reply.<br /><br />The idea is to have one app that can connect to multiple databases (each frmDatabaseQuery).  Then within each frmDatabaseQuery, there can be multiple queries to that database.<br /><br />Therefore, frmDatabaseQuery is set to be an mdiChild and the panes in frmDatabaseQuery hold multiple instances of the frmQuery form.<br /><br />However, I did enable the tabworkspace for the frmDatabaseQuery forms, but the behaviour of the panes is still the same.<br /><br />BUT...After a lot more playing around and just trying different things, I set frmQuery to be an mdiChild as well and voila ... it all works properly.<br /><br />Curiously, even though I've set frmQuery to be an mdi child, the instances of it don't appear in the window list of the MDI form.  Admittedly this is a good thing in this case, just not what I would have expected.<br /><br /><br />Thanks for your help,<br /><br /><br />Rohan]]>
   </description>
   <pubDate>Sun, 04 May 2008 06:49:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34635&amp;title=cant-edit-controls-in-docked-pane#34635</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t edit controls in docked pane :    hi redfin,since you wanted...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34631&amp;title=cant-edit-controls-in-docked-pane#34631</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 10485<br /><strong>Posted:</strong> 04 May 2008 at 5:44am<br /><br />hi redfin,<br><br>since you wanted to use an mdi form, why dont you just use an mdi child form on your query forms? and then enable the tabworkspace of the commandbars object? as i have seen in your code you are also using dockingpanes for your query forms.<br><br>sample code:<br><br>With DockingPane1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pneSchema = .CreatePane(0, Me.ScaleWidth * 0.2, Me.ScaleHeight, DockLeftOf, Nothing)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pneSchema.Options = PaneNoCaption<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set frmSchema = New frmDatabaseSchema<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pneSchema.SetHandle frmSchema.hwnd<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Connect Me 'this makes a connection to a database<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If frmConnect.Cancelled Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unload Me<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br><br>End With<br><br><b>dim i as long<br><br>for i = 0 to 2<br></b><b>&nbsp;&nbsp;&nbsp; dim fQuery as frmDatabaseQuery<br></b><b>&nbsp;&nbsp;&nbsp; set fQuery = new frmDatabaseQuery<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  <br>&nbsp;&nbsp;&nbsp; fQuery.Caption = "Untitled Query " &amp; i+1<br>&nbsp;&nbsp;&nbsp; fQuery.Show<br>next<br></b><br><br>just make sure that frmDatabaseQuery is an MDI-child form.<br><br>hope this helps.<br>]]>
   </description>
   <pubDate>Sun, 04 May 2008 05:44:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34631&amp;title=cant-edit-controls-in-docked-pane#34631</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t edit controls in docked pane : Hi Aaron,  I&amp;#039;ll see what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34630&amp;title=cant-edit-controls-in-docked-pane#34630</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3873">RedFin</a><br /><strong>Subject:</strong> 10485<br /><strong>Posted:</strong> 04 May 2008 at 5:08am<br /><br />Hi Aaron,<br /><br />I'll see what I can do.  There are quite a few custom controls referenced so it will need a bit of work to cut it down suitable for uploading.<br /><br />In the meantime however, I've worked out that it is somehow related to the fact that I'm using an MDI form.  To test, I modified the project to be SDI and it worked fine....I guess I can just live with it that way, but it would certainly be preferable for it to work with an MDI form.<br /><br />Cheers,<br /><br />Rohan]]>
   </description>
   <pubDate>Sun, 04 May 2008 05:08:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34630&amp;title=cant-edit-controls-in-docked-pane#34630</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t edit controls in docked pane : Hi,  Is it possible to upload...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34629&amp;title=cant-edit-controls-in-docked-pane#34629</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10485<br /><strong>Posted:</strong> 04 May 2008 at 4:09am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Is it possible to upload the project and&nbsp;just have the code in which you load the panes? Just make a copy and delete all unwanted code.</DIV>]]>
   </description>
   <pubDate>Sun, 04 May 2008 04:09:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34629&amp;title=cant-edit-controls-in-docked-pane#34629</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t edit controls in docked pane : A bit more info ...  the controls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34627&amp;title=cant-edit-controls-in-docked-pane#34627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3873">RedFin</a><br /><strong>Subject:</strong> 10485<br /><strong>Posted:</strong> 04 May 2008 at 2:12am<br /><br />A bit more info ...<br /><br />the controls are only receiving mouse events.  On the grid at the bottom I can click rows and column headers (to change the sort order) etc, but if I click a row and then try the arrow keys, nothing happens.<br /><br />.... and even weirder, I've just discovered that if I click on the grid at the bottom, the text box at the top receives the focus and I can edit it]]>
   </description>
   <pubDate>Sun, 04 May 2008 02:12:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34627&amp;title=cant-edit-controls-in-docked-pane#34627</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t edit controls in docked pane : Hi,  I am hoping someone can tell...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34626&amp;title=cant-edit-controls-in-docked-pane#34626</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3873">RedFin</a><br /><strong>Subject:</strong> 10485<br /><strong>Posted:</strong> 04 May 2008 at 1:27am<br /><br />Hi,<br /><br />I am hoping someone can tell me what I'm doing wrong here ... <br /><br />I am using v12 of the docking pane control.  I am loading a form thus ...<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;With DockingPane1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pneSchema = .CreatePane(0, Me.ScaleWidth * 0.2, Me.ScaleHeight, DockLeftOf, Nothing)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pneSchema.Options = PaneNoCaption<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set frmSchema = New frmDatabaseSchema<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pneSchema.SetHandle frmSchema.hwnd<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Connect Me 'this makes a connection to a database<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If frmConnect.Cancelled Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unload Me<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReDim frmQuery(3)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set frmQuery(1) = New frmDatabaseQuery<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set frmQuery(2) = New frmDatabaseQuery<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set frmQuery(3) = New frmDatabaseQuery<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PaintManager.ShowCaption = False<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set qry1 = .CreatePane(1, Me.ScaleWidth * 0.8, Me.ScaleHeight, DockRightOf, pneSchema)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qry1.SetHandle frmQuery(1).hwnd<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qry1.Title = "Untitled Query 1"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set frmQuery(1).Connection = mcnSql<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qry1.Enabled = PaneEnabled<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frmQuery(1).sql = "SELECT * FROM tblentities"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set qry2 = .CreatePane(2, Me.ScaleWidth * 0.8, Me.ScaleHeight, DockRightOf, qry1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qry2.SetHandle frmQuery(2).hwnd<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qry2.Title = "Untitled Query 2"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set frmQuery(2).Connection = mcnSql<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set qry3 = .CreatePane(3, Me.ScaleWidth * 0.8, Me.ScaleHeight, DockRightOf, qry1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set frmQuery(2) = New frmDatabaseQuery<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qry3.SetHandle frmQuery(3).hwnd<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qry3.Title = "Untitled Query 3"<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AttachPane qry2, qry1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AttachPane qry3, qry1<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Options.LunaColors = True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Options.HideClient = True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .TabPaintManager<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Appearance = xtpTabAppearanceVisualStudio2005<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Color = xtpTabColorOffice2003<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Position = xtpTabPositionTop<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Layout = xtpTabLayoutAutoSize<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qry1.Select<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mId = 1<br />&nbsp;&nbsp;&nbsp;&nbsp;End With<br /><br /><br />... which creates the following ....<br /><br /><br /><br /><img src="uploads/20080504_011656_Docking_Pane_Pr.png" border="0"><br /><br /><br />The problem is that some of the controls can't be used.  eg. I can't edit the text in the text box (except through code using ... frmQuery(1).sql = "SELECT * FROM tblentities" as in the above code)<br /><br />In the lower half of the picture I can't do anything with the 2 tables at the top, but can use the "Collate" and "Options" buttons right next them.<br /><br />It is worth noting that events like mouse click etc work as normal.<br /><br />However, if I undock the pane, it all works fine.<br /><br />I've spent hours on this one single problem and tried all sorts of different options, and have tried to emulate the various codejock samples provided, all to no avail.<br /><br />Can someone please save me from tearing my hair out !!<br /><br /><br />Thankyou,<br /><br />Rohan]]>
   </description>
   <pubDate>Sun, 04 May 2008 01:27:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10485&amp;PID=34626&amp;title=cant-edit-controls-in-docked-pane#34626</guid>
  </item> 
 </channel>
</rss>