<?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 : SetDropDownWidth with combo label</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : SetDropDownWidth with combo label]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 23:26:59 +0000</pubDate>
  <lastBuildDate>Wed, 24 Aug 2005 08:30:27 +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=2766</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[SetDropDownWidth with combo label : ok, if it helps any other, I set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8315&amp;title=setdropdownwidth-with-combo-label#8315</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1403">Louis</a><br /><strong>Subject:</strong> 2766<br /><strong>Posted:</strong> 24 August 2005 at 8:30am<br /><br /><P><FONT size=1>ok, if it helps any other, I set the proper width in OnInitCommandsPopup which is triggered by the ON_XTP_INITCOMMANDSPOPUP() message map macro.</FONT></P><P><FONT size=1>Can't wait for 9.8 to get this support&nbsp;and other goodies <IMG src="http://forum.codejock.com/smileys/smiley4.gif" border="0"></FONT></P><P><FONT size=1>thanks Oleg for all your help, you are the master. <IMG src="http://forum.codejock.com/smileys/smiley32.gif" border="0"></FONT></P><P><FONT size=1>Louis.</FONT></P>]]>
   </description>
   <pubDate>Wed, 24 Aug 2005 08:30:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8315&amp;title=setdropdownwidth-with-combo-label#8315</guid>
  </item> 
  <item>
   <title><![CDATA[SetDropDownWidth with combo label : Ok, now it is working. I noticed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8303&amp;title=setdropdownwidth-with-combo-label#8303</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1403">Louis</a><br /><strong>Subject:</strong> 2766<br /><strong>Posted:</strong> 23 August 2005 at 11:43am<br /><br /><P>Ok, now it is working.</P><P>I noticed there is a function: CXTPControlComboBox::GetLabelWidth()</P><P>Is there a way I could use this function to find the proper width of drop down to use ? I tried using it in OnCreateControl but the label width is 0 at that time.</P><P>I tried this:</P><FONT size=2><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> ID_COMBO_DAYS:<BR>{<BR>&nbsp;&nbsp;&nbsp; m_pComboDays = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> CXTPControlComboBox();</P><P></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; if</FONT><FONT size=2>( m_pComboDays )<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pComboDays-&gt;SetFlags(xtpFlagLeftPopup);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lpCreateControl-&gt;pControl = m_pComboDays;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pComboDays-&gt;SetStyle(xtpComboLabel);</FONT></P><P><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int nMyWidth = 70;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pComboDays-&gt;SetWidth(&nbsp;nMyWidth );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nLabelWidth = m_pComboDays-&gt;GetLabelWidth();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#008000 size=2>//Unfortunatly label width = 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>m_pComboDays-&gt;SetDropDownWidth( nMyWidth-nLabelWidth );<BR></FONT><FONT size=2>&nbsp;&nbsp;&nbsp; }<BR></FONT><FONT size=2>}</P></FONT>]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 11:43:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8303&amp;title=setdropdownwidth-with-combo-label#8303</guid>
  </item> 
  <item>
   <title><![CDATA[SetDropDownWidth with combo label : and change width pCombo-&amp;gt;SetDropDownWidth(100);...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8301&amp;title=setdropdownwidth-with-combo-label#8301</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2766<br /><strong>Posted:</strong> 23 August 2005 at 11:23am<br /><br /><P>and change width</P><P>pCombo-&gt;SetDropDownWidth(100);</P>]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 11:23:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8301&amp;title=setdropdownwidth-with-combo-label#8301</guid>
  </item> 
  <item>
   <title><![CDATA[SetDropDownWidth with combo label : because you must add xtpFlagLeftPopup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8300&amp;title=setdropdownwidth-with-combo-label#8300</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2766<br /><strong>Posted:</strong> 23 August 2005 at 11:21am<br /><br /><P>because you must add xtpFlagLeftPopup&nbsp; flag.</P><P>&nbsp;</P><P>in OnCreateControl function also add</P><P>pControlCombo-&gt;SetFlags(xtpFlagLeftPopup);</P>]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 11:21:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8300&amp;title=setdropdownwidth-with-combo-label#8300</guid>
  </item> 
  <item>
   <title><![CDATA[SetDropDownWidth with combo label : thanks Oleg. I tried the patch...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8299&amp;title=setdropdownwidth-with-combo-label#8299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1403">Louis</a><br /><strong>Subject:</strong> 2766<br /><strong>Posted:</strong> 23 August 2005 at 10:59am<br /><br /><P>thanks Oleg. I tried the patch but it does not seem to work.</P><P>To be sure here is what I did:</P><P>In XTPPopupBar.cpp, in function UpdateFlags()</P><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_pControlPopup-&gt;GetType() == xtpControlComboBox &amp;&amp; pParent-&gt;GetType() != xtpBarTypePopup)<BR>{</P><P></FONT><FONT color=#008000 size=2>&nbsp;&nbsp;&nbsp; //m_popupFlags = xtpPopupDown;</P></FONT><FONT size=2><P></P><P></FONT><FONT color=#008000 size=2>&nbsp;&nbsp;&nbsp; //LDaoust: 2005-08-23<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT size=2>m_popupFlags |= xtpPopupDown;<BR>}<BR><BR>I recompiled, put a breakpoint, breakpoint was hit, so code is executed, but I dont see any change. Drop down is still left align with label.</FONT></P><P><FONT size=2>&nbsp;</P></FONT>]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 10:59:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8299&amp;title=setdropdownwidth-with-combo-label#8299</guid>
  </item> 
  <item>
   <title><![CDATA[SetDropDownWidth with combo label : It is designed behaviour and works...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8274&amp;title=setdropdownwidth-with-combo-label#8274</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2766<br /><strong>Posted:</strong> 22 August 2005 at 11:55pm<br /><br /><P>It is designed behaviour and works like in Office products.</P><P>For 9.80 we will add xtpFlagLeftPopup flag support for CXTPControlComboBox.</P><P>&nbsp;</P><P>you can patch your sources now to allow it:</P><P>in void CXTPPopupBar::UpdateFlags()</P><P>replace</P><P>m_popupFlags = xtpPopupDown;</P><P>to</P><P>m_popupFlags |= xtpPopupDown;</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 22 Aug 2005 23:55:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8274&amp;title=setdropdownwidth-with-combo-label#8274</guid>
  </item> 
  <item>
   <title><![CDATA[SetDropDownWidth with combo label : For an example of what it looks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8273&amp;title=setdropdownwidth-with-combo-label#8273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1403">Louis</a><br /><strong>Subject:</strong> 2766<br /><strong>Posted:</strong> 22 August 2005 at 8:33pm<br /><br />For an example of what it looks like look at sample CustomThemes. Open Find combo at bottom.]]>
   </description>
   <pubDate>Mon, 22 Aug 2005 20:33:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8273&amp;title=setdropdownwidth-with-combo-label#8273</guid>
  </item> 
  <item>
   <title><![CDATA[SetDropDownWidth with combo label : Created a combo box with xtpComboLabel...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8272&amp;title=setdropdownwidth-with-combo-label#8272</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1403">Louis</a><br /><strong>Subject:</strong> 2766<br /><strong>Posted:</strong> 22 August 2005 at 8:28pm<br /><br /><P>Created a combo box with xtpComboLabel style. By default, the drop down width of combo is the width of combo + width of label which makes drop down appear below label. I htink it should be width of combo only, makes visual funny. Also, if I adjust the width of drop down to be smaller to be same as combo, the left edge of drop down is always at left which makes it not align with combo. </P><P>I think default behaviour should be drop down width is equal to width of combo only, and drop down left edge should always be align with left edge of combo. </P><P>Or is there a way to adjust this already ?</P>]]>
   </description>
   <pubDate>Mon, 22 Aug 2005 20:28:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2766&amp;PID=8272&amp;title=setdropdownwidth-with-combo-label#8272</guid>
  </item> 
 </channel>
</rss>