<?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 : CXTTabview Addview causes flicker</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTTabview Addview causes flicker]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 21:42:54 +0000</pubDate>
  <lastBuildDate>Fri, 09 Sep 2005 13:15:47 +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=2865</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[CXTTabview Addview causes flicker : Hi Everyone,  I sent this to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2865&amp;PID=8554&amp;title=cxttabview-addview-causes-flicker#8554</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=504">AliRafiee</a><br /><strong>Subject:</strong> 2865<br /><strong>Posted:</strong> 09 September 2005 at 1:15pm<br /><br /><P>Hi Everyone, <IMG src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></P><P>I sent this to company using their Bug Report Link and I got an automated email saying that I don't have an active contract. <IMG src="http://forum.codejock.com/smileys/smiley5.gif" border="0">&nbsp;I need an active contract to report a bug!?!?!</P><P>Anyway thought it might help someone out. This is for 8.70</P><P>What I have done is added a variable to the AddView method which allows the user to indicate if the newly added tab should be activated or not.&nbsp; I was getting alot of flickering with the original implementation (I think they are trying to do too much for the user, what does adding a tab have to do with activating it!)</P><P>Download this for the modified files.<A href="http://forum.codejock.com/uploads/AliRafiee/2005-09-09_131446_XTTabCtrl.zip" target="_blank">2005-09-09_131446_XTTabCtrl.zip</A></P><P>Anyway, see below for more details.</P><FONT size=2><P>Hi guys,</P><P>I have an SDI Application that has a Listbox on the left and a CXTTabView on the right. Depending on the users selection on the left I add 3 views to the Tab view. Every time the selection changes, I clear the views and add new ones, 3 views 1 2 and 3. Now here is my problem everytime I call AddView the tab control sets that view as the active view, so at the end of the calls tab 3 is the active tab, but I want tab 1 to be the active tab, and I have to call SetActiveView. And this causes a flicker. In order to get around this, I had to get rid of the call to SetActiveView in CXTTabCtrlBaseEx::AddControl, and also change the default window style in CXTTabCtrlBaseEx::CreateTabView from AFX_WS_DEFAULT_VIEW to WS_CHILD|WS_BORDER, in order to get rid of the WS_VISIBLE flag. </P><P>I also tried to insert the items in reverse order and that didn''t help the flickering because each tab is displayed as it is inserted. So inserting many tabs in a row will cause alot of flicker.</P><P>I was wondering if you guys would be intersted in allow the user to pass a bool to the AddView method to indicate whether they want to switch to the tab after it was created or not (if not don''t use the WS_VISIBLE flag and don''t call SetActiveView()). That would make my life easier when it comes time to upgrade to your new version.</P><P>If you know of a better way to do this please feel free to let me know.</P><P>Thanks</P><P>Ali Rafiee</P></FONT>]]>
   </description>
   <pubDate>Fri, 09 Sep 2005 13:15:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2865&amp;PID=8554&amp;title=cxttabview-addview-causes-flicker#8554</guid>
  </item> 
 </channel>
</rss>