<?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 : xtpButtonIconAndCaption icon size problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : xtpButtonIconAndCaption icon size problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 06:06:43 +0000</pubDate>
  <lastBuildDate>Wed, 26 Mar 2008 11:40:51 +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=9842</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[xtpButtonIconAndCaption icon size problem :  Hi, I have a similar problem,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9842&amp;PID=32602&amp;title=xtpbuttoniconandcaption-icon-size-problem#32602</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2192">Dieter</a><br /><strong>Subject:</strong> 9842<br /><strong>Posted:</strong> 26 March 2008 at 11:40am<br /><br />Hi,<br><br>I have a similar problem, but I use Visual C++/MFC Xtreme Toolkit Pro: <br><br>My application has a toolbar in a client window and I needed text below the icons. <br>I tested the style xtpButtonIconAndCaptionBelow and set the icon size with SetIconSize(CSize(16, 16));<br>But the icons were still large and the caption used two lines. <br><br>So I searched in the samples and found the following line in the HelpContext-Sample:<br>pCommandBars-&gt;GetCommandBarsOptions()-&gt;bShowTextBelowIcons = TRUE;<br><br>Now the icons are small, the text is below the icons and the caption has only one line. <br><br>Maybe there is a similar setting in the ActiveX-Control?<br><br><br><b>Oleg, </b><br>Is the behaviour (large icons, caption has two lines) of xtpButtonIconAndCaptionBelow and SetIconSize(CSize(16, 16))<br>working as designed or is this an error.&nbsp; <br><br>With GetCommandBarsOptions()-&gt;bShowTextBelowIcons everything is much better!<br><br>]]>
   </description>
   <pubDate>Wed, 26 Mar 2008 11:40:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9842&amp;PID=32602&amp;title=xtpbuttoniconandcaption-icon-size-problem#32602</guid>
  </item> 
  <item>
   <title><![CDATA[xtpButtonIconAndCaption icon size problem : Thanks Oleg,That does produce...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9842&amp;PID=32112&amp;title=xtpbuttoniconandcaption-icon-size-problem#32112</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3742">foleypt</a><br /><strong>Subject:</strong> 9842<br /><strong>Posted:</strong> 10 March 2008 at 6:54pm<br /><br />Thanks Oleg,<br><br>That does produce the affect I want, however what are the implications of setting this option?<br><br>I set the iconsize for each control and commandbar elsewhere in the menus and toolbars but I seem to remember that some of the codejock controls will reference off this large icon setting size and so will hence appear at 16x16 not say the perhaps desired 24x24?<br><br>Are you planning on altering this behaviour of xtpButtonIconAndCaptionBelow?<br><br>Could you advise me as to the implications of setting the workaround?<br>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 18:54:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9842&amp;PID=32112&amp;title=xtpbuttoniconandcaption-icon-size-problem#32112</guid>
  </item> 
  <item>
   <title><![CDATA[xtpButtonIconAndCaption icon size problem : Hi,  Yes xtpButtonIconAndCaptionBelow...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9842&amp;PID=32108&amp;title=xtpbuttoniconandcaption-icon-size-problem#32108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9842<br /><strong>Posted:</strong> 10 March 2008 at 4:17pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes xtpButtonIconAndCaptionBelow always use icon size defined as "Large" icon size.</DIV><DIV>as workaround afd this line:</DIV><DIV>&nbsp;</DIV><DIV>CommandBars.Options.SetIconSize True, 16, 16</DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 16:17:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9842&amp;PID=32108&amp;title=xtpbuttoniconandcaption-icon-size-problem#32108</guid>
  </item> 
  <item>
   <title><![CDATA[xtpButtonIconAndCaption icon size problem : I have a toolbar which is set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9842&amp;PID=32100&amp;title=xtpbuttoniconandcaption-icon-size-problem#32100</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3742">foleypt</a><br /><strong>Subject:</strong> 9842<br /><strong>Posted:</strong> 10 March 2008 at 2:03pm<br /><br />I have a toolbar which is set with icons at size 24x24&nbsp; but I want one control to have icon at 16x16 and a caption below.<br><br>I use control.Style = xtpButtonIconAndCaptionBelow, but I find with this style I end up with an icon 24x24 EVEN if I set the icon in question and all the other icons to 16x16, this has the affect of making the whole toolbar higher<br><br>How can I set the icon to 16x16? I link to a zipped up example project exhibiting the problem<br><br><a href="http://services.beac&#111;n-dodsworth.co.uk/ic&#111;nsize_problem.zip" target="_blank">http://services.beacon-dodsworth.co.uk/iconsize_problem.zip</a><br><br>Dim toolbar As CommandBar<br>Dim control As CommandBarControl<br><br>Set toolbar = CommandBars.Add("MyToolbar", xtpBarTop)<br><br>CommandBars.ActiveMenuBar.Visible = False<br><br>CommandBars.Icons = ImageManager1.Icons<br><br>toolbar.SetIconSize 24, 24<br>'toolbar.SetIconSize 16, 16<br><br>toolbar.Controls.Add xtpControlButton, 100, ""<br>Set control = toolbar.Controls.Add(xtpControlButton, 101, "my button")<br>toolbar.Controls.Add xtpControlButton, 102, ""<br><br>control.Style = xtpButtonIconAndCaptionBelow<br>control.SetIconSize 16, 16<br>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 14:03:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9842&amp;PID=32100&amp;title=xtpbuttoniconandcaption-icon-size-problem#32100</guid>
  </item> 
 </channel>
</rss>