<?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 : How do add other c&#111;ntrols to tab bar?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How do add other c&#111;ntrols to tab bar?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 08:31:41 +0000</pubDate>
  <lastBuildDate>Tue, 14 Jun 2005 04:40:23 +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=2261</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[How do add other c&#111;ntrols to tab bar? : Thanks. Now I am able to add more...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=7063&amp;title=how-do-add-other-controls-to-tab-bar#7063</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 2261<br /><strong>Posted:</strong> 14 June 2005 at 4:40am<br /><br /><P>Thanks. Now I am able to add more navigate buttons.</P><P>But may I have another little request. I would like my navigate button on the left side of the tab bar. I used the following code, in my derived CXTPTabManagerNavigateButton class:</P><P>virtual void Reposition(CRect&amp; rcNavigateButtons)<BR>&nbsp;{<BR>&nbsp;&nbsp;if (m_dwFlags == xtpTabNavigateButtonAlways || m_dwFlags == xtpTabNavigateButtonAutomatic)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if (m_pManager-&gt;IsHorizontalPosition())<BR>&nbsp;&nbsp;&nbsp;{<BR> &nbsp;&nbsp;&nbsp;&nbsp;m_rcButton.SetRect(rcNavigateButtons .left, rcNavigateButtons.CenterPoint().y + m_szButton.cy / 2 - m_szButton.cy, rcNavigateButtons.left + m_szButton.cx, rcNavigateButtons.CenterPoint().y + m_szButton.cy / 2);<BR>&nbsp;&nbsp;&nbsp;&nbsp;rcNavigateButtons.left += m_szButton.cx;<BR>&nbsp;&nbsp;&nbsp;} else<BR>&nbsp;&nbsp;&nbsp;{<BR> &nbsp;&nbsp;&nbsp;&nbsp;m_rcButton.SetRect(rcNavigateButtons .CenterPoint().x - m_szButton.cx / 2, rcNavigateButtons.bottom - m_szButton.cy, rcNavigateButtons.CenterPoint().x - m_szButton.cx / 2 + m_szButton.cx, rcNavigateButtons.bottom);<BR>&nbsp;&nbsp;&nbsp;&nbsp;rcNavigateButtons.bottom -= m_szButton.cy;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;} <BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;m_rcButton.SetRectEmpty();<BR>&nbsp;}<BR></P><P>It supposed to work, but actually not. With above code, the tab item will not be drawn. Will it work in 9.7 or 10.0 ?</P><P>Best</P><P>Jeff</P>]]>
   </description>
   <pubDate>Tue, 14 Jun 2005 04:40:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=7063&amp;title=how-do-add-other-controls-to-tab-bar#7063</guid>
  </item> 
  <item>
   <title><![CDATA[How do add other c&#111;ntrols to tab bar? : I know :) Whats why we added C...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6983&amp;title=how-do-add-other-controls-to-tab-bar#6983</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2261<br /><strong>Posted:</strong> 09 June 2005 at 4:06am<br /><br /><P>I know :) Whats why we added <FONT size=2>CXTPTabManager::</FONT>GetNavigateButtons, please patch your source to make it possible:</P><P>in XTPTabManagher.h: add</P><P>typedef CArray&lt;CXTPTabManagerNavigateButton*, CXTPTabManagerNavigateButton*&gt; CXTPTabManagerNavigateButtons;<BR></P><P>CXTPTabManagerNavigateButtons* CXTPTabManager::GetNavigateButtons() {<BR>&nbsp;return &amp;m_arrNavigateButtons;</P><P>}<BR></P>]]>
   </description>
   <pubDate>Thu, 09 Jun 2005 04:06:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6983&amp;title=how-do-add-other-controls-to-tab-bar#6983</guid>
  </item> 
  <item>
   <title><![CDATA[How do add other c&#111;ntrols to tab bar? : Thanks oleg. That&amp;#039;s exactly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6980&amp;title=how-do-add-other-controls-to-tab-bar#6980</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 2261<br /><strong>Posted:</strong> 09 June 2005 at 2:28am<br /><br /><P>Thanks oleg. That's exactly what I tried to do. But it seems the derived class can not access the m_arrNavigateButtons.</P><P>CMaxTabManager::CWorkspace* CMaxTabManager::AddWorksapce(int nIndex)<BR>{<BR>&nbsp;CWorkspace* pWorkspace = CXTPTabClientWnd::AddWorksapce(nIndex);<BR>//&nbsp;pWorkspace-&gt;m_arrNavigateButtons.Add(new CNavigateButtonArrowLeft(this, xtpTabNavigateButtonAutomatic));<BR>&nbsp;return pWorkspace;<BR>}</P><P>If I un-comments the above line, there will be a compiling error.</P>]]>
   </description>
   <pubDate>Thu, 09 Jun 2005 02:28:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6980&amp;title=how-do-add-other-controls-to-tab-bar#6980</guid>
  </item> 
  <item>
   <title><![CDATA[How do add other c&#111;ntrols to tab bar? : Yo can try override  CXTPTabClientWnd::CWorkspace*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6968&amp;title=how-do-add-other-controls-to-tab-bar#6968</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2261<br /><strong>Posted:</strong> 08 June 2005 at 11:29pm<br /><br /><P>Yo can try override </P><P>CXTPTabClientWnd::CWorkspace*&nbsp; AddWorksapce(int nIndex)</P><P>call base class and add new button for new workspace.</P><P>We added <FONT size=2>CXTPTabManager::</FONT>GetNavigateButtons() member for next release.</P>]]>
   </description>
   <pubDate>Wed, 08 Jun 2005 23:29:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6968&amp;title=how-do-add-other-controls-to-tab-bar#6968</guid>
  </item> 
  <item>
   <title><![CDATA[How do add other c&#111;ntrols to tab bar? : Thanks oleg. But it looks like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6887&amp;title=how-do-add-other-controls-to-tab-bar#6887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 2261<br /><strong>Posted:</strong> 03 June 2005 at 11:12pm<br /><br /><P>Thanks <SPAN =bold>oleg. But it looks like the mdi tab is not done by CXTPTasbControl. It's  CXTPTabClientWnd.Do you know where shall I override? If it's not possible,&nbsp;may I ask you to put this issue to v10.0?</SPAN></P><P><SPAN =bold>Thanks</SPAN></P>]]>
   </description>
   <pubDate>Fri, 03 Jun 2005 23:12:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6887&amp;title=how-do-add-other-controls-to-tab-bar#6887</guid>
  </item> 
  <item>
   <title><![CDATA[How do add other c&#111;ntrols to tab bar? : right, seems we forgotGetNavigateButtons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6867&amp;title=how-do-add-other-controls-to-tab-bar#6867</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2261<br /><strong>Posted:</strong> 03 June 2005 at 1:31am<br /><br /><P>right, seems we forgot&nbsp;<FONT size=2>GetNavigateButtons method, </FONT></P><P><FONT size=2>so you must </FONT></P><P><FONT size=2>1. overrdie CXTPTasbControl,</FONT></P><P><FONT size=2>2. in constructor call</FONT></P><FONT size=2><FONT size=2><P>m_arrNavigateButtons.Add(new <FONT size=2>CNavigateButtonOptions</FONT>(this, <FONT size=2></P><P>xtpTabNavigateButtonAlways));</P><P>3. create CNavigateButtonOptions and override </P><FONT size=2><P></FONT><FONT color=#0000ff size=2>virtual</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> DrawEntry(CDC* pDC, CRect rc); // to draw</FONT><P><FONT size=2></P></FONT></P></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 03 Jun 2005 01:31:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6867&amp;title=how-do-add-other-controls-to-tab-bar#6867</guid>
  </item> 
  <item>
   <title><![CDATA[How do add other c&#111;ntrols to tab bar? : Basically what I want is to add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6847&amp;title=how-do-add-other-controls-to-tab-bar#6847</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 2261<br /><strong>Posted:</strong> 01 June 2005 at 11:48am<br /><br />Basically what I want is to add another button on the left of 3 navigation buttons.&nbsp; At first, I looked for an function like "AddNavigationButton(...) ", but found nothing. So could <A class=smLink href="java&#115;cript openWin'pop_up_profile.asp?PF=37','profile','toolbar=0,locati&#111;n=0,status=0,menubar=0,scrollbars=1,resizable=1,width=590,height=425'" target="_blank">oleg</A>&nbsp;or other toolkit guru give some advices ?]]>
   </description>
   <pubDate>Wed, 01 Jun 2005 11:48:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6847&amp;title=how-do-add-other-controls-to-tab-bar#6847</guid>
  </item> 
  <item>
   <title><![CDATA[How do add other c&#111;ntrols to tab bar? : Hi, is there a way to add more...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6705&amp;title=how-do-add-other-controls-to-tab-bar#6705</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 2261<br /><strong>Posted:</strong> 20 May 2005 at 8:45am<br /><br /><P>Hi, is there a way to add more custom buttons/control to a tab bar? My current project needs to do that but I have no idea on how to.</P><P>Thanks</P>]]>
   </description>
   <pubDate>Fri, 20 May 2005 08:45:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2261&amp;PID=6705&amp;title=how-do-add-other-controls-to-tab-bar#6705</guid>
  </item> 
 </channel>
</rss>