<?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 : Floating Pane initialise is messy</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Floating Pane initialise is messy]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 21:04:15 +0000</pubDate>
  <lastBuildDate>Mon, 02 Feb 2009 18:58:54 +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=13285</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[Floating Pane initialise is messy : Thank you Aaron for taking trouble...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45094&amp;title=floating-pane-initialise-is-messy#45094</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13285<br /><strong>Posted:</strong> 02 February 2009 at 6:58pm<br /><br />Thank you Aaron for taking trouble to investigatae.<br><br>To make your sample same as what I am doing, just take all the code in your Form_Load event and move it to the Command1_Click event.&nbsp; <br><br>That is, I only create the Form1 when I need to show it in the Pane. (because I will be displaying many different Forms in this same Pane).<br><br>So when I click the Command button, the Form1 is loaded and then the Pane created and then the Form1 attached to the Pane, and the Pane floated and moved to the location I require.<br><br>When I run this code on my PC there is no problem. The Pane and Form seems to appear almost instantly on screen with no "flicker".<br><br>So I guess that my real app is slower because of many forms and many controls, and this causes the appearance on screen to be slower.<br><br>My code is very similar to your example. So I conclude there is no better way to create/display a floating Pane.<br><br>Thank you again for all your comments.<br>]]>
   </description>
   <pubDate>Mon, 02 Feb 2009 18:58:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45094&amp;title=floating-pane-initialise-is-messy#45094</guid>
  </item> 
  <item>
   <title><![CDATA[Floating Pane initialise is messy : Hi Chris,  I still can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45081&amp;title=floating-pane-initialise-is-messy#45081</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13285<br /><strong>Posted:</strong> 02 February 2009 at 2:43pm<br /><br />Hi Chris,<DIV>&nbsp;</DIV><DIV>I still can't reproduce what you mentioned... Maybe you could add something so it does... <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/20090202_144241_TestFloatingPan.zip" target="_blank">uploads/20090202_144241_TestFloatingPan.zip</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 02 Feb 2009 14:43:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45081&amp;title=floating-pane-initialise-is-messy#45081</guid>
  </item> 
  <item>
   <title><![CDATA[Floating Pane initialise is messy : I have done more experiments....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45063&amp;title=floating-pane-initialise-is-messy#45063</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13285<br /><strong>Posted:</strong> 02 February 2009 at 7:35am<br /><br />I have done more experiments. Some of my problem was that I had a DoEvents loop waiting for the floating form to become visible.<br><br>(Did you know that this happens.......<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myForm.show<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; debug.print myForm.visible&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; (prints&nbsp; True)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myPane.Handle = myForm.hWnd<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; debug.print myForm.visible&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (print&nbsp; False)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wait for a while&nbsp;&nbsp; (eg 50 mSec)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; debug.print myForm.visible&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (prints&nbsp;&nbsp; True)<br>)<br><br><br>My DoEvents while waiting caused the black background effect. So that is now fixed.<br><br>But I still have problem that floating form appears on screen, and then moves to final Pane position/size. This causes flickering effect.&nbsp; I can minimise this by trying to preset Pane size and position to match the Form.<br><br>------------------------------------------------------------<br>Can you get a Floating Pane to appear in the middle of the screen with its attached Form, instantly?&nbsp; (ie. without flicker?).&nbsp; If yes, please what code do you use?&nbsp; &nbsp; <br><br><br>]]>
   </description>
   <pubDate>Mon, 02 Feb 2009 07:35:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45063&amp;title=floating-pane-initialise-is-messy#45063</guid>
  </item> 
  <item>
   <title><![CDATA[Floating Pane initialise is messy : Hi Chris,  I can&amp;#039;t reproduce...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45040&amp;title=floating-pane-initialise-is-messy#45040</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13285<br /><strong>Posted:</strong> 31 January 2009 at 2:43am<br /><br />Hi Chris,<DIV>&nbsp;</DIV><DIV>I can't reproduce it <img src="https://forum.codejock.com/smileys/smiley5.gif" border="0">&nbsp;Can you upload test project?</DIV>]]>
   </description>
   <pubDate>Sat, 31 Jan 2009 02:43:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45040&amp;title=floating-pane-initialise-is-messy#45040</guid>
  </item> 
  <item>
   <title><![CDATA[Floating Pane initialise is messy :  Additional Information.The same...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45010&amp;title=floating-pane-initialise-is-messy#45010</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13285<br /><strong>Posted:</strong> 29 January 2009 at 7:01pm<br /><br />Additional Information.<br><br>The same thing happens even if I do not attach a Form to the Pane.<br><br>So I get the flickering and black centre even if I just use<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set TmpFloatPane = DPM.CreatePane(......)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TmpFloatPane.Floating = True<br><br><br>If I only have the first line (.CreatePane(...&nbsp;&nbsp; ) the pane appears instantly with no flickering.&nbsp; But when I make the Pane float, I get the problem.<br><br>Is there some property I need to set?<br><br>]]>
   </description>
   <pubDate>Thu, 29 Jan 2009 19:01:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45010&amp;title=floating-pane-initialise-is-messy#45010</guid>
  </item> 
  <item>
   <title><![CDATA[Floating Pane initialise is messy : When I create the floating pane,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45009&amp;title=floating-pane-initialise-is-messy#45009</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13285<br /><strong>Posted:</strong> 29 January 2009 at 3:44pm<br /><br />When I create the floating pane, I get flicker at top left of screen. Then frame (outside edge of pane) appears in the specified location (eg 100, 100), but the centre of this area is all black.&nbsp; So I've got a black rectangle on the screen. Then it flickers again and the form appears in the pane.&nbsp; So it looks messy.<br><br>I have tried many things to try and stop this. eg.&nbsp; try and create pane and set it not visible, then attach Form handle, then make it visible etc. But no improvement.<br><br>Here is roughly what I am doing:<br><br>Set myForm = New TheForm<br>W = myForm.Width<br>H = myForm.Height<br>Set myPane = DPM.CreatePane(Id, W, H, 0, Nothing)<br>myPane.Handle = myForm.hWnd<br>myPane.Floating = True<br><br><br><br>]]>
   </description>
   <pubDate>Thu, 29 Jan 2009 15:44:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45009&amp;title=floating-pane-initialise-is-messy#45009</guid>
  </item> 
  <item>
   <title><![CDATA[Floating Pane initialise is messy : Hi Chris,  What do you mean...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45007&amp;title=floating-pane-initialise-is-messy#45007</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13285<br /><strong>Posted:</strong> 29 January 2009 at 2:12pm<br /><br />Hi Chris,<OL><LI>What do you mean by: This&nbsp;just looks messy?</LI><LI>Just call: wndDockingPanes.FloatPane wndDockingPanes.FindPane(1), 100, 100, 200, 200</LI></OL><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 29 Jan 2009 14:12:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45007&amp;title=floating-pane-initialise-is-messy#45007</guid>
  </item> 
  <item>
   <title><![CDATA[Floating Pane initialise is messy : I am creating a small Floating...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45006&amp;title=floating-pane-initialise-is-messy#45006</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13285<br /><strong>Posted:</strong> 29 January 2009 at 1:49pm<br /><br />I am creating a small Floating Pane with a Form attached.&nbsp; It all works OK but when the Pane first appears it is a frame around a black area. After that the Form appears in the frame.&nbsp; This just looks messy.&nbsp; <br><br>How can I make it look prettier?<br><br><br>Also, FloatingPane always appears top left of my screen.&nbsp; How can I make it initially appear in different position?<br>]]>
   </description>
   <pubDate>Thu, 29 Jan 2009 13:49:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13285&amp;PID=45006&amp;title=floating-pane-initialise-is-messy#45006</guid>
  </item> 
 </channel>
</rss>