<?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 : Changing the title of a pane</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Changing the title of a pane]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 17:10:23 +0000</pubDate>
  <lastBuildDate>Sat, 22 Jan 2005 17:04:49 +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=1678</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[Changing the title of a pane : Sorry... I think I used this back...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4812&amp;title=changing-the-title-of-a-pane#4812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 1678<br /><strong>Posted:</strong> 22 January 2005 at 5:04pm<br /><br />Sorry... I think I used this back in the v8.x days, so I guess it doesn't work anymore.]]>
   </description>
   <pubDate>Sat, 22 Jan 2005 17:04:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4812&amp;title=changing-the-title-of-a-pane#4812</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the title of a pane : Had 5 mins this morning on the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4811&amp;title=changing-the-title-of-a-pane#4811</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=566">Maui</a><br /><strong>Subject:</strong> 1678<br /><strong>Posted:</strong> 22 January 2005 at 4:32pm<br /><br /><P>Had 5 mins this morning on the PC and tried your suggestion but it didnt work.</P><P>Wont have time to get on the PC for a few days so it will be a while before I can test this further.</P><P>Here's hoping that the next release will address this problem.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sat, 22 Jan 2005 16:32:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4811&amp;title=changing-the-title-of-a-pane#4811</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the title of a pane : Looks great. Thank you for your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4793&amp;title=changing-the-title-of-a-pane#4793</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=566">Maui</a><br /><strong>Subject:</strong> 1678<br /><strong>Posted:</strong> 20 January 2005 at 10:06am<br /><br /><P>Looks great.</P><P>Thank you for your help. I will let you know how I get on.</P>]]>
   </description>
   <pubDate>Thu, 20 Jan 2005 10:06:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4793&amp;title=changing-the-title-of-a-pane#4793</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the title of a pane : I found this a long time ago and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4773&amp;title=changing-the-title-of-a-pane#4773</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 1678<br /><strong>Posted:</strong> 19 January 2005 at 7:37am<br /><br /><P>I found this a long time ago and created a workaround for it.&nbsp; I figured this would have been fixed by now, but I guess not.&nbsp; This work-around was designed before the ThemedFloatingPanes option was introduced, so I don't know how that will affect it, but you can play with it to make it work.&nbsp; The general idea behind this was that a floating pane was actually a window with a title bar.&nbsp; The workaround was to use the 'SetWindowText' API function to directly change the title of the window.&nbsp; I wrapped it up into a function that took three parameters... the DockingPane object, the ID of the pane to update, and the new title.</P><P>Declare Function SetWindowText Lib "user32.dll" Alias "SetWindowTextA" (ByVal hWnd As Long, ByVal lpString As String) As Long<BR>Declare Function GetParent Lib "user32.dll" (ByVal hWnd As Long) As Long<BR>Public Sub UpdatePaneTitle(ByRef dockingPanes As DockingPane, ByVal iPaneID As Integer, ByVal sTitle As String)<BR>&nbsp;&nbsp;&nbsp; Dim hWnd As Long, p As Pane<BR>&nbsp;&nbsp;&nbsp; Set p = dockingPanes.FindPane(iPaneId)<BR>&nbsp;&nbsp;&nbsp; If p Is Nothing Then Exit Sub<BR>&nbsp;&nbsp;&nbsp; p.Title = sTitle<BR>&nbsp;&nbsp;&nbsp; If p.Floating = True Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'The container for the floating form is two levels up from<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'the docked item itself.&nbsp; We need to update both captions.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetWindowText p.handle, sTitle<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hWnd = GetParent(GetParent(p.handle))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If hWnd &lt;&gt; 0 Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; SetWindowText hWnd, sTitle<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dockingPanes.RecalcLayout<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub</P><P>At the time, I don't think the 'RedrawPanes' method existed, so I used 'RecalcLayout' instead.&nbsp; I'm sure you can tweak this to accomplish what you need.&nbsp; Hope this helps!&nbsp; Of course, it'd still be nice if Codejock can wrap up a resolution to this. <IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></P>]]>
   </description>
   <pubDate>Wed, 19 Jan 2005 07:37:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4773&amp;title=changing-the-title-of-a-pane#4773</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the title of a pane : Cheers .DockingPane.RedrawPanes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4771&amp;title=changing-the-title-of-a-pane#4771</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=566">Maui</a><br /><strong>Subject:</strong> 1678<br /><strong>Posted:</strong> 19 January 2005 at 6:05am<br /><br /><P>Cheers</P><P>.DockingPane.RedrawPanes works as long as the panes are docked.</P><P>If the panes arent docked then they arent effected until they are redocked.</P><P>CJ support - Pls log this as a bug.</P>]]>
   </description>
   <pubDate>Wed, 19 Jan 2005 06:05:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4771&amp;title=changing-the-title-of-a-pane#4771</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the title of a pane : Try adding the line:  P.RedrawPanes  after...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4766&amp;title=changing-the-title-of-a-pane#4766</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=570">nighthawk</a><br /><strong>Subject:</strong> 1678<br /><strong>Posted:</strong> 18 January 2005 at 4:25pm<br /><br />Try adding the line:<br><br>P.RedrawPanes<br><br>after setting the title.<br>]]>
   </description>
   <pubDate>Tue, 18 Jan 2005 16:25:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4766&amp;title=changing-the-title-of-a-pane#4766</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the title of a pane : I have created a pane. The pane...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4765&amp;title=changing-the-title-of-a-pane#4765</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=566">Maui</a><br /><strong>Subject:</strong> 1678<br /><strong>Posted:</strong> 18 January 2005 at 4:08pm<br /><br /><P>I have created a pane. The pane shows the contents of a folder.</P><P>I want to set the title of the pane to be whatever the current directory on show is.</P><P>I used this code.</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set P = .DockingPane.FindPane(ID_PANE_GALLERY)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not P Is Nothing Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; P.Title = sPath<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Debug.Print "new title=" &amp; sPath<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If</P><P>The Title&nbsp;doesnt change even though I can see with the debug that the correct info is being passed.</P><P>There is no .refresh method so Im not sure what to do&nbsp;next?</P><P>Please dont tell me that the only answer is to destroy and then recreate the pane.</P><P>Thanks&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 18 Jan 2005 16:08:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1678&amp;PID=4765&amp;title=changing-the-title-of-a-pane#4765</guid>
  </item> 
 </channel>
</rss>