<?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 : Another ComboBox Markup Issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Another ComboBox Markup Issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:33:24 +0000</pubDate>
  <lastBuildDate>Thu, 05 Feb 2009 06:08:02 +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=13331</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[Another ComboBox Markup Issue : :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13331&amp;PID=45145&amp;title=another-combobox-markup-issue#45145</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13331<br /><strong>Posted:</strong> 05 February 2009 at 6:08am<br /><br /><P>:)</P>]]>
   </description>
   <pubDate>Thu, 05 Feb 2009 06:08:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13331&amp;PID=45145&amp;title=another-combobox-markup-issue#45145</guid>
  </item> 
  <item>
   <title><![CDATA[Another ComboBox Markup Issue : Or Oleg&amp;#039;s method seems to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13331&amp;PID=45132&amp;title=another-combobox-markup-issue#45132</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13331<br /><strong>Posted:</strong> 04 February 2009 at 2:09pm<br /><br />Or Oleg's method seems to work ;)<br><br>Just change "Hirizontal" to "Horizontal"<br>]]>
   </description>
   <pubDate>Wed, 04 Feb 2009 14:09:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13331&amp;PID=45132&amp;title=another-combobox-markup-issue#45132</guid>
  </item> 
  <item>
   <title><![CDATA[Another ComboBox Markup Issue : I think that this happens because...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13331&amp;PID=45131&amp;title=another-combobox-markup-issue#45131</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13331<br /><strong>Posted:</strong> 04 February 2009 at 2:07pm<br /><br />I think that this happens because the ComboBox height is locked to the font height, regardless of the markup size (try changing the height of the combobox and you'll see that it always snaps back to a certain size). You can workaround this by setting the font size of the ComboBox to something larger than you are using for your markup text, and then explicitly declare you TextBox font size as the smaller font size that you actually want...<br><br>For example:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; SuiteControlsGlobalSettings.Icons.AddIcons ImageManager1.Icons<br><br><br><br>&nbsp;&nbsp;&nbsp; With ComboBox1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableMarkup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Font.Size = 12<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "&lt;TextBlock FontSize='8pt' VerticalAlignment='Center'&gt;&lt;Image Width='16' Height='16' Source='101' /&gt;&lt;Run BaselineAlignment='Center'&gt;Item 1&lt;/Run&gt;&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "&lt;TextBlock FontSize='8pt' VerticalAlignment='Center'&gt;&lt;Image Width='16' Height='16' Source='101' /&gt;&lt;Run BaselineAlignment='Center'&gt;Item 2&lt;/Run&gt;&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "&lt;TextBlock FontSize='8pt' VerticalAlignment='Center'&gt;&lt;Image Width='16' Height='16' Source='101' /&gt;&lt;Run BaselineAlignment='Center'&gt;Item 3&lt;/Run&gt;&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ListIndex = 0<br>&nbsp;&nbsp;&nbsp; End With<br></pre></td></tr></table><br><br>Note that I've also added the Run tag with a center Baseline alignment to keep the text aligned nicely with the image.<br>]]>
   </description>
   <pubDate>Wed, 04 Feb 2009 14:07:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13331&amp;PID=45131&amp;title=another-combobox-markup-issue#45131</guid>
  </item> 
  <item>
   <title><![CDATA[Another ComboBox Markup Issue : Hi, try to move Image from TextBlock:  .AddItem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13331&amp;PID=45129&amp;title=another-combobox-markup-issue#45129</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13331<br /><strong>Posted:</strong> 04 February 2009 at 1:51pm<br /><br />Hi,<DIV>try to move Image from TextBlock:</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New">&nbsp;.AddItem "&lt;StackPanel Orientation="Hirizontal"&gt;&lt;Image Width='16' Height='16' Source='101'/&gt;&lt;TextBlock&gt;Item 1&lt;/TextBlock&gt;&lt;/StackPanel&gt;"</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 04 Feb 2009 13:51:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13331&amp;PID=45129&amp;title=another-combobox-markup-issue#45129</guid>
  </item> 
  <item>
   <title><![CDATA[Another ComboBox Markup Issue : I can send an actual sample project...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13331&amp;PID=45124&amp;title=another-combobox-markup-issue#45124</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1368">ScottW</a><br /><strong>Subject:</strong> 13331<br /><strong>Posted:</strong> 04 February 2009 at 10:54am<br /><br />I can send an actual sample project if necessary, but to replicate this, just create a form with an ImageManager control and a ComboBox with DropdownList style. Add a single Icon to the ImageManager with ID 101. It should be a 16x16 icon. Then paste in this code and run. In the dropdown, it all looks great, but the selected item has the text clipped at the bottom. I tried using VerticalAlignment tag to bring the text up, but it doesn't seem to do anything. How can I fix this?<br><br><font face="Courier New, Courier, mono">Private Sub Form_Load()<br><br>&nbsp;&nbsp;&nbsp; SuiteControlsGlobalSettings.Icons.AddIcons ImageManager1.Icons<br><br>&nbsp;&nbsp;&nbsp; With ComboBox1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableMarkup = True<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "&lt;TextBlock&gt;&lt;Image Width='16' Height='16' Source='101' /&gt;Item 1&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "&lt;TextBlock&gt;&lt;Image Width='16' Height='16' Source='101' /&gt;Item 2&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "&lt;TextBlock&gt;&lt;Image Width='16' Height='16' Source='101' /&gt;Item 3&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ListIndex = 0<br>&nbsp;&nbsp;&nbsp; End With<br><br>End Sub<br></font><br>]]>
   </description>
   <pubDate>Wed, 04 Feb 2009 10:54:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13331&amp;PID=45124&amp;title=another-combobox-markup-issue#45124</guid>
  </item> 
 </channel>
</rss>