<?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 : Lots of flashing with floating panes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Lots of flashing with floating panes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 11:27:28 +0000</pubDate>
  <lastBuildDate>Tue, 28 May 2019 11:47:17 +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=23855</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[Lots of flashing with floating panes : For our purposes I also added...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23855&amp;PID=77349&amp;title=lots-of-flashing-with-floating-panes#77349</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 23855<br /><strong>Posted:</strong> 28 May 2019 at 11:47am<br /><br />For our purposes I also added a method to set that flag as it turns out we have cases where we have to detach objects and then issue a redraw call when we are done. So I set the flag to avoid redraws while we call Detach and clear it after detaching. Then we call the API to redraw (just a wrapper that calls _Redraw). I would have called an analogous API that wraps _DetachAll but it didn't exist. Would be nice to have an API that wraps _DetachAll that can be used to avoid all the drawing until all are detached.<br>]]>
   </description>
   <pubDate>Tue, 28 May 2019 11:47:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23855&amp;PID=77349&amp;title=lots-of-flashing-with-floating-panes#77349</guid>
  </item> 
  <item>
   <title><![CDATA[Lots of flashing with floating panes : I added a flag to the manager...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23855&amp;PID=77340&amp;title=lots-of-flashing-with-floating-panes#77340</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 23855<br /><strong>Posted:</strong> 24 May 2019 at 4:33pm<br /><br /><div>I added a flag to the manager and set it in SetLayout before calling _DetachAll. Checked the flag in _Redraw and exited. Cleared the flag in SetLayout after _DetachAll so the call to _Redraw would execute. So far, I have seen no ill side effects and all the flashing is gone. Nice, clean display.</div><div><br></div><div>If any CJ person reads this, let me know if there is something I might not have tested. I floated panes, I have multiple dock sites on the left and right side of the app. MDI tests where different panes are used by each document type. Pinned, unpinned ... Hope I didn't miss anything.</div><div><br></div><div>Would be great if CJ added code to stop the flashing so I don't have to edit each build we pull to add this code to that build before we compile the toolkit.<br></div>]]>
   </description>
   <pubDate>Fri, 24 May 2019 16:33:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23855&amp;PID=77340&amp;title=lots-of-flashing-with-floating-panes#77340</guid>
  </item> 
  <item>
   <title><![CDATA[Lots of flashing with floating panes : When we call SetLayout, any panes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23855&amp;PID=77339&amp;title=lots-of-flashing-with-floating-panes#77339</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 23855<br /><strong>Posted:</strong> 24 May 2019 at 3:45pm<br /><br /><div>When we call SetLayout, any panes we have in floating containers end up causing the floating containers to flash like crazy. We do have a lot of panes. The issue is that CXTPDockingPaneManager::SetLayout calls _DetachAll() and _DetachAll() loops thru each pane and calls Detach on the pane. In CXTPDockingPane::Detach(), a call is made right back to the manager to call _Redraw. Then after the manager _DetachAll returns, the manager calls _Redraw.</div><div><br></div><div>Can CJ modify the code to keep each pane Detach from causing _Redraw to be called (via a flag passed in to Detach) or, the manager could set a flag "I'm in _DetachAll" and when _Redraw is called, ignore the call. We have derived from the CJ manager so I would override those APIs but they are not virtual. If SetLayout were virtual, we could override it and implement our own _DetachAll and/or _Redraw.</div><div><br></div><div>Note that even if I have just one floating container, it gets redisplayed once for each pane in the pane manager's list as the pane manager _Redraw code redraws everything. Users are beating us up on this one. Especially users that float multiple panes in different containers.<br></div>]]>
   </description>
   <pubDate>Fri, 24 May 2019 15:45:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23855&amp;PID=77339&amp;title=lots-of-flashing-with-floating-panes#77339</guid>
  </item> 
 </channel>
</rss>