<?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 : CommandBar text and expanded butt&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CommandBar text and expanded butt&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 15:54:01 +0000</pubDate>
  <lastBuildDate>Mon, 06 Sep 2004 02:58:04 +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=1121</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[CommandBar text and expanded butt&#111;n : Thanks ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1121&amp;PID=2984&amp;title=commandbar-text-and-expanded-button#2984</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=671">kanlaw</a><br /><strong>Subject:</strong> 1121<br /><strong>Posted:</strong> 06 September 2004 at 2:58am<br /><br />Thanks <IMG src="http://forum.codejock.com/smileys/smiley36.gif" border="0">]]>
   </description>
   <pubDate>Mon, 06 Sep 2004 02:58:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1121&amp;PID=2984&amp;title=commandbar-text-and-expanded-button#2984</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar text and expanded butt&#111;n : 1 and 2. You must create custome...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1121&amp;PID=2973&amp;title=commandbar-text-and-expanded-button#2973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1121<br /><strong>Posted:</strong> 05 September 2004 at 3:10am<br /><br /><P>1 and 2. You must create custome commandbars class:</P><P>class CCommandBars : public CXTPCommandBars<BR>{<BR>&nbsp;DECLARE_DYNCREATE(CCommandBars)</P><P>&nbsp;virtual void GetHiddenControls (CXTPToolBar* pToolBar, CXTPCommandBar* pExpandBar);<BR>};</P><P>IMPLEMENT_DYNCREATE(CCommandBars, CXTPCommandBars)</P><P>void CCommandBars::GetHiddenControls(CXTPToolBar* pToolBar, CXTPCommandBar* pExpandBar)<BR>{<BR>&nbsp;if (pToolBar-&gt;IsTextBelowIcons())<BR>&nbsp;&nbsp;pExpandBar-&gt;ShowTextBelowIcons();<BR>&nbsp;<BR>&nbsp;&nbsp;<BR>&nbsp;for (int i = 0; i &lt; pToolBar-&gt;GetControls()-&gt;GetCount(); i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPControl* pControl = pToolBar-&gt;GetControl(i);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;if (pControl-&gt;GetHideFlags() == xtpHideWrap)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CXTPControl* pControlClone = pExpandBar-&gt;GetControls()-&gt;AddClone(pControl);<BR>&nbsp;&nbsp;&nbsp;pControlClone-&gt;SetHideFlags(0);<BR>&nbsp;&nbsp;&nbsp;pControlClone-&gt;SetBeginGroup(FALSE);<BR>&nbsp;&nbsp;}<BR>&nbsp;}&nbsp;&nbsp;<BR>}<BR>and apply it:</P><P>int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)<BR>{</P><P>...</P><P>// Initialize the command bars<BR>&nbsp;&nbsp;&nbsp; if (!InitCommandBars(RUNTIME_CLASS(CCommandBars)))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<BR>...</P><P>&nbsp;</P><P>ps. be sure CXTPCommandBars::GetHiddenControls is virtual (see XTPCommandBars.h)</P><P>it&nbsp;was changed only in 9.10. If it is not so, add "virtual" keyword manually.</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sun, 05 Sep 2004 03:10:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1121&amp;PID=2973&amp;title=commandbar-text-and-expanded-button#2973</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar text and expanded butt&#111;n : 1. I make a commandbar with style...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1121&amp;PID=2916&amp;title=commandbar-text-and-expanded-button#2916</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=671">kanlaw</a><br /><strong>Subject:</strong> 1121<br /><strong>Posted:</strong> 31 August 2004 at 11:20pm<br /><br /><P>1. I make a commandbar with style of text under button, the text will disappear when button is in the expanded bar. Could I keep the text at this situation. (pic for your reference)</P><P><IMG src="uploads/kanlaw/2004-08-31_231925_DaqBar.jpg" border="0"></P><P>2. The expanded bar includes all the buttons that can not be displayed at the same line command bars, Could I limit just include itself button.</P><P><IMG src="uploads/kanlaw/2004-08-31_231946_DaqBar2.jpg" border="0"></P>]]>
   </description>
   <pubDate>Tue, 31 Aug 2004 23:20:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1121&amp;PID=2916&amp;title=commandbar-text-and-expanded-button#2916</guid>
  </item> 
 </channel>
</rss>