<?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 to change the Font of CXTPControl ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to change the Font of CXTPControl ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 22:46:17 +0000</pubDate>
  <lastBuildDate>Thu, 05 Mar 2009 23:37:39 +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=13512</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 to change the Font of CXTPControl ? :  Thanks Oleg,Deriving from CXTPOfficeTheme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=46331&amp;title=how-to-change-the-font-of-cxtpcontrol#46331</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 13512<br /><strong>Posted:</strong> 05 March 2009 at 11:37pm<br /><br />Thanks Oleg,<br><br>Deriving from CXTPOfficeTheme works only for it. so i found some workaround to make it work for all the themes using some macros :)<br><br><br><br>]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 23:37:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=46331&amp;title=how-to-change-the-font-of-cxtpcontrol#46331</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the Font of CXTPControl ? : Hi,  Yes, both true.   Another...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=46178&amp;title=how-to-change-the-font-of-cxtpcontrol#46178</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13512<br /><strong>Posted:</strong> 03 March 2009 at 5:18am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes, both true.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Another option is to create class derived from some CXTPOfficeTheme, override GetControlFont and return font you need.</DIV>]]>
   </description>
   <pubDate>Tue, 03 Mar 2009 05:18:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=46178&amp;title=how-to-change-the-font-of-cxtpcontrol#46178</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the Font of CXTPControl ? :   Thanks oleg,It changes the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=46170&amp;title=how-to-change-the-font-of-cxtpcontrol#46170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 13512<br /><strong>Posted:</strong> 03 March 2009 at 4:47am<br /><br />Thanks oleg,<br><br>It changes the font correctly. Being a Label it does not work like a button(which i need like handle Click event,mouse over highlight etc). <br>And when i dock the menu bar to right or left of the Mainframe the label didnt render the vertical text.<br><br><br>]]>
   </description>
   <pubDate>Tue, 03 Mar 2009 04:47:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=46170&amp;title=how-to-change-the-font-of-cxtpcontrol#46170</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the Font of CXTPControl ? : Hi,  Here sample:  CXTPControlMarkupLabel*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=46068&amp;title=how-to-change-the-font-of-cxtpcontrol#46068</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13512<br /><strong>Posted:</strong> 02 March 2009 at 12:41am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Here sample:</DIV><DIV>&nbsp;</DIV><DIV>CXTPControlMarkupLabel* pLabel = new CXTPControlMarkupLabel();<BR>&nbsp;pLabel-&gt;SetCaption(_T("&lt;TextBlock TextAlignment='Center'&gt;&lt;Underline&gt;This is&lt;/Underline&gt;&lt;LineBreak/&gt;&lt;Bold&gt;Markup&lt;/Bold&gt; &lt;Run Foreground='Red'&gt;Label&lt;/Run&gt;&lt;LineBreak/&gt;&lt;Italic&gt;Control&lt;/Italic&gt;&lt;/TextBlock&gt;"));<BR></DIV><DIV></DIV>pMenuBar-&gt;GetControls()-&gt;Add(pLabel);]]>
   </description>
   <pubDate>Mon, 02 Mar 2009 00:41:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=46068&amp;title=how-to-change-the-font-of-cxtpcontrol#46068</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the Font of CXTPControl ? : Hi Oleg,I am kind of new to Markups....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=45966&amp;title=how-to-change-the-font-of-cxtpcontrol#45966</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 13512<br /><strong>Posted:</strong> 27 February 2009 at 7:48am<br /><br />Hi Oleg,<br><br>I am kind of new to Markups. An example for this Scenario will be more helpful.<br><br>Thanks<br><br>]]>
   </description>
   <pubDate>Fri, 27 Feb 2009 07:48:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=45966&amp;title=how-to-change-the-font-of-cxtpcontrol#45966</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the Font of CXTPControl ? : Hi, No :( You can only make font...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=45953&amp;title=how-to-change-the-font-of-cxtpcontrol#45953</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13512<br /><strong>Posted:</strong> 27 February 2009 at 2:59am<br /><br />Hi,<DIV>No :( You can only make font bold (SetItemDefault(TRUE))&nbsp; or use Markup feature.</DIV>]]>
   </description>
   <pubDate>Fri, 27 Feb 2009 02:59:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=45953&amp;title=how-to-change-the-font-of-cxtpcontrol#45953</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the Font of CXTPControl ? :   Hi, CXTPCommandBar* pMenuBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=45950&amp;title=how-to-change-the-font-of-cxtpcontrol#45950</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 13512<br /><strong>Posted:</strong> 27 February 2009 at 1:16am<br /><br />Hi,<br><br>&nbsp;&nbsp;&nbsp; CXTPCommandBar* pMenuBar = pCommandBars-&gt;SetMenu(_T("Menu Bar"), IDR_SAMPLETYPE);<br><br>&nbsp;&nbsp;&nbsp; if(pMenuBar == NULL)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create menu bar.\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; pMenuBar-&gt;SetFlags(xtpFlagAddMDISysPopup);&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp; int NoOfCtrls = -1;<br>&nbsp;&nbsp;&nbsp; NoOfCtrls = pMenuBar-&gt;GetControlCount();<br>&nbsp;&nbsp;&nbsp; CXTPControl *pControl = NULL;<br>&nbsp;&nbsp;&nbsp; pControl = pMenuBar-&gt;GetControl(NoOfCtrls - 1);<br><br>Is it possible to change the Font of pControl here ? (only pControl not entire CommandBars through XTPPaintManager)<br><br>Thanks in advance.<br><br>]]>
   </description>
   <pubDate>Fri, 27 Feb 2009 01:16:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13512&amp;PID=45950&amp;title=how-to-change-the-font-of-cxtpcontrol#45950</guid>
  </item> 
 </channel>
</rss>