<?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 : CXTPControlComboBox on CommandBar stays disabled</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPControlComboBox on CommandBar stays disabled]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 20:13:45 +0000</pubDate>
  <lastBuildDate>Thu, 21 Oct 2010 04:58:19 +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=17466</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[CXTPControlComboBox on CommandBar stays disabled : Well for some reason it works...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17466&amp;PID=61068&amp;title=cxtpcontrolcombobox-on-commandbar-stays-disabled#61068</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6426">Thanos</a><br /><strong>Subject:</strong> 17466<br /><strong>Posted:</strong> 21 October 2010 at 4:58am<br /><br />Well for some reason it works now. I've readded the <FONT size=2><P>ON_UPDATE_COMMAND_UI and <FONT size=2></P><P>ON_XTP_EXECUTE handlers to the CXTPDialogBase derived class and now the combobox is enabled. The only difference i can think of are the </P><DIV></DIV><FONT size=2><P>pToolBar-&gt;GetControls()-&gt;CreateOriginalControls(); </P><DIV></DIV>and<DIV></DIV><FONT size=2><P>m_pFilterCombo-&gt;SetEnabled(TRUE);</P><DIV></DIV><DIV></DIV>lines since the last time i tried this.</FONT></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 21 Oct 2010 04:58:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17466&amp;PID=61068&amp;title=cxtpcontrolcombobox-on-commandbar-stays-disabled#61068</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlComboBox on CommandBar stays disabled : Hi,  i seem to have the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17466&amp;PID=61067&amp;title=cxtpcontrolcombobox-on-commandbar-stays-disabled#61067</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6426">Thanos</a><br /><strong>Subject:</strong> 17466<br /><strong>Posted:</strong> 21 October 2010 at 4:52am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>i seem to have the following problem. I've created a CXTPommandBar on a CXTPDialogBase derived class like in the DialogSample like this:</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>VERIFY(InitCommandBars());</DIV><P>CXTPCommandBars* pCommandBars = GetCommandBars();</P><P>CXTPToolBar* pToolBar = pCommandBars-&gt;Add(_T(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Planning"</FONT></FONT><FONT size=2>), xtpBarTop);</P><P>pToolBar-&gt;LoadToolBar(IDR_PLANVIEW_TOOLBAR);</P><P>pToolBar-&gt;ShowExpandButton(FALSE);</P><P>pToolBar-&gt;GetControls()-&gt;CreateOriginalControls();</P><DIV></DIV><P>&nbsp;</P><P>On the commandbar i've created a CXTPControlComboBox by using the following code in the OnCreateControl of the CXTPDialogBase derived class:</P><DIV></DIV><DIV></DIV><FONT size=2><P>m_pFilterCombo = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> CXTPControlComboBox(GetCommandBars());</P><P>lpCreateControl-&gt;pControl = m_pFilterCombo;</P><P>m_pFilterCombo-&gt;SetWidth(140);</P><P>m_pFilterCombo-&gt;SetHeight(200);</P><P>m_pFilterCombo-&gt;SetDropDownListStyle(FALSE);</P><P>m_pFilterCombo-&gt;SetEnabled(TRUE);</P><DIV></DIV><DIV></DIV>The combobox shows up perfectly and i can access it in code, it just never seems to be set to enabled. <DIV></DIV><DIV></DIV><DIV></DIV>I've tried adding<FONT size=2><P>ON_UPDATE_COMMAND_UI and <FONT size=2></P><P>ON_XTP_EXECUTE handlers to the CXTPDialogBase derived class and to the mainframe and main program view but nothing seems to work, even if i use pCmdUI-&gt;SetEnable(TRUE) on any of those levels. </P><DIV>One more thing to note would be that the CXTPDialogBase derived class is created and added to a pane that's added to the DockingPaneManager in the CMainFrame.</DIV><DIV>&nbsp;</DIV><DIV>Any help on the subject would be appreciated.</DIV><DIV>Thanks in advance</DIV></FONT></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 21 Oct 2010 04:52:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17466&amp;PID=61067&amp;title=cxtpcontrolcombobox-on-commandbar-stays-disabled#61067</guid>
  </item> 
 </channel>
</rss>