<?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 : Attaching controls to Commandbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Attaching controls to Commandbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:38:02 +0000</pubDate>
  <lastBuildDate>Sun, 10 Feb 2008 11:31:30 +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=9512</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[Attaching controls to Commandbar : Oleg,  Yes, I noticed the difference...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=31012&amp;title=attaching-controls-to-commandbar#31012</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9512<br /><strong>Posted:</strong> 10 February 2008 at 11:31am<br /><br />Oleg,<DIV>&nbsp;</DIV><DIV>Yes, I noticed the difference between the two combo's. With one the ThemedItems is set to true before filling the combo and the other one after the filling of the combo. </DIV><DIV>&nbsp;</DIV><DIV>Is it possible to check this kind of behaviour somewhere? It would be nice that I know this in advance and not asking you everytime <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">&nbsp;I will be using a lot of settings which will be set to the users needs, so it would be nice if I could check this. </DIV><DIV>&nbsp;</DIV><DIV>Thank you for the answer, now I the how and why</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 10 Feb 2008 11:31:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=31012&amp;title=attaching-controls-to-commandbar#31012</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching controls to Commandbar : Hi, Its kind of feature :) If...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30990&amp;title=attaching-controls-to-commandbar#30990</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9512<br /><strong>Posted:</strong> 08 February 2008 at 3:11pm<br /><br /><P>Hi,</P><DIV>Its kind of feature :) If you use ThemedItems you need call it before you add items because ThemedItems =True destroy list, destroy items and create list again.</DIV>]]>
   </description>
   <pubDate>Fri, 08 Feb 2008 15:11:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30990&amp;title=attaching-controls-to-commandbar#30990</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching controls to Commandbar : Oleg,   Just paste the code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30959&amp;title=attaching-controls-to-commandbar#30959</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9512<br /><strong>Posted:</strong> 08 February 2008 at 3:08am<br /><br />Oleg, <DIV>&nbsp;</DIV><DIV>Just paste the code and you will see the behaviour I mentioned.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Const ID_TOOLBAR_TEST = 400<BR>Const ID_TOOLBAR_COMBOCONTROLITEMS = 401</DIV><DIV>&nbsp;</DIV><DIV><DIV>Private Sub Form_Load()<BR>&nbsp;&nbsp;&nbsp; LoadToolbarItems<BR>End Sub<BR></DIV></DIV><DIV>Private Function LoadToolbarItems()<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; CommandBarSubViews.DeleteAll<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; Dim toolBarSubViews As CommandBar<BR>&nbsp;&nbsp;&nbsp; Set toolBarSubViews = CommandBarSubViews.Add("Tools subview", xtpBarTop)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolBarSubViews.BarID = 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddButton CommandBarSubViews(1).Controls, xtpControlComboBox, ID_TOOLBAR_COMBOCONTROLITEMS, "", True, "Select item for positioning"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddButton CommandBarSubViews(1).Controls, xtpControlComboBox, ID_TOOLBAR_TEST, "Items", True, "Width / height size selected item", xtpButtonIconAndCaption<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim toolComboTest As CommandBarComboBox<BR>&nbsp;&nbsp;&nbsp; Set toolComboTest = CommandBarSubViews.FindControl(, ID_TOOLBAR_TEST)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim i As Integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 1 To 20<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.AddItem "Select item " &amp; i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.Width = 150<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.ThemedItems = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.DropDownWidth = 400</DIV><DIV><BR>&nbsp;&nbsp;&nbsp; Dim toolComboControlitems As CommandBarComboBox<BR>&nbsp;&nbsp;&nbsp; Set toolComboControlitems = CommandBarSubViews.FindControl(, ID_TOOLBAR_COMBOCONTROLITEMS)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboControlitems.Width = 150<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboControlitems.ThemedItems = True<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 1 To 20<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboControlitems.AddItem "Select item " &amp; i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; CommandBarSubViews.DockToolBar CommandBarSubViews(1), 0, 0, xtpBarTop<BR>&nbsp;&nbsp;&nbsp; CommandBarSubViews(1).EnableDocking XTPToolBarFlags.xtpFlagHideWrap<BR>&nbsp;&nbsp;&nbsp; CommandBarSubViews(1).ShowGripper = False<BR>&nbsp;&nbsp;&nbsp; CommandBarSubViews.Options.ShowExpandButtonAlways = False<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; <BR>End Function</DIV><DIV>Private Function AddButton(Controls As CommandBarControls, ControlType As XTPControlType, Id As Long, Caption As String, Optional BeginGroup As Boolean = False, Optional DescriptionText As String = "", Optional ButtonStyle As XTPButtonStyle = xtpButtonAutomatic, Optional Category As String = "Controls") As CommandBarControl<BR>&nbsp;&nbsp;&nbsp; Dim Control As CommandBarControl<BR>&nbsp;&nbsp;&nbsp; Set Control = Controls.Add(ControlType, Id, Caption)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Control.BeginGroup = BeginGroup<BR>&nbsp;&nbsp;&nbsp; Control.DescriptionText = DescriptionText<BR>&nbsp;&nbsp;&nbsp; Control.Style = ButtonStyle<BR>&nbsp;&nbsp;&nbsp; Control.Category = Category<BR>&nbsp;&nbsp;&nbsp; Control.Enabled = True<BR>&nbsp;&nbsp;&nbsp; Set AddButton = Control<BR>&nbsp;&nbsp;&nbsp; <BR>End Function</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Change toolComboTest.DropDownWidth = 600 and the other combo takes over this setting.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 08 Feb 2008 03:08:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30959&amp;title=attaching-controls-to-commandbar#30959</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching controls to Commandbar : Hi,  I need some sample to test....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30955&amp;title=attaching-controls-to-commandbar#30955</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9512<br /><strong>Posted:</strong> 08 February 2008 at 1:35am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I need some sample to test. Please attach one.</DIV>]]>
   </description>
   <pubDate>Fri, 08 Feb 2008 01:35:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30955&amp;title=attaching-controls-to-commandbar#30955</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching controls to Commandbar :     Oleg, You wouldn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30945&amp;title=attaching-controls-to-commandbar#30945</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9512<br /><strong>Posted:</strong> 07 February 2008 at 4:15pm<br /><br /><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><P>Oleg,</P><P>You wouldn't believe me if&nbsp;I said that the combobox isn't working properly , &nbsp;and for the Colorpicker I didn't really put much effort in it. It's not that important since I use the propertygrid for all my app settings. Great control by the way <img src="https://forum.codejock.com/smileys/smiley32.gif" border="0"></P><DIV>&nbsp;</DIV><DIV>Now, this is what I did</DIV><DIV>&nbsp;</DIV><DIV>I added the combobox to the commandbar, then:</DIV><DIV>&nbsp;</DIV><DIV>Dim toolComboTest As CommandBarComboBox<BR>&nbsp;&nbsp;&nbsp; Set toolComboTest = CommandBarSubviews.FindControl(, ID_TOOLBAR_TEST)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim i As Integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 1 To 20<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.AddItem "Select item " &amp; i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.DropDownListStyle = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.DropDownWidth = 100<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.ListIndex = 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.Width = 200</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.ThemedItems = false''&nbsp;see picture&nbsp;1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboTest.ThemedItems = True ''&nbsp;see picture 2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>This is another combobox (works properly)</DIV><DIV><BR>&nbsp;&nbsp;&nbsp; Set toolComboControlitems = CommandBarSubviews.FindControl(, ID_TOOLBAR_COMBOCONTROLITEMS)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboControlitems.AddItem "Select item..."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboControlitems.ListIndex = 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboControlitems.Width = 250<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; toolComboControlitems.ThemedItems = True ''LOOK, set to true and the items will be set to for example:&nbsp;another font</DIV><DIV>&nbsp;</DIV></DIV><DIV>&nbsp;</DIV><DIV>Picture 1</DIV><DIV><img src="https://forum.codejock.com/uploads/20080207_160857_DropDownCombo_1.bmp" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Picture 2</DIV><DIV><img src="https://forum.codejock.com/uploads/20080207_161132_DropDownCombo_2.bmp" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Notice the width of the dropdown area. I feel an other adventure coming up hahaha. (This is not a laugh of joy...)</DIV>]]>
   </description>
   <pubDate>Thu, 07 Feb 2008 16:15:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30945&amp;title=attaching-controls-to-commandbar#30945</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching controls to Commandbar : Hello,  Yes its true. :-( Can...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30911&amp;title=attaching-controls-to-commandbar#30911</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9512<br /><strong>Posted:</strong> 07 February 2008 at 1:01am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Yes its true. :-( Can you use Our builtin CommandBarComboBox and Colopicker ?</DIV>]]>
   </description>
   <pubDate>Thu, 07 Feb 2008 01:01:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30911&amp;title=attaching-controls-to-commandbar#30911</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching controls to Commandbar : When attaching a Combobox, Colorpicker...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30877&amp;title=attaching-controls-to-commandbar#30877</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9512<br /><strong>Posted:</strong> 06 February 2008 at 12:01pm<br /><br />When attaching a Combobox, Colorpicker (in general controls which have a dropdown section) to a commandbar, mousedown event outside the dropdown commandbar area (but inside the combobox dropdown area) causes the dropdown area to disappear or sometimes will lose the handle (I think) with the&nbsp;attached control. Combobox is&nbsp;floating where&nbsp;you put in the IDE.&nbsp;Click on the&nbsp;on the commandbarbutton again will attach the control to the commandbar. <DIV>&nbsp;</DIV><DIV>If combobox is in picturebox sometimes the dropdown area of commandbar disappears.</DIV><DIV>&nbsp;</DIV><DIV>Am I missing something here?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 06 Feb 2008 12:01:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9512&amp;PID=30877&amp;title=attaching-controls-to-commandbar#30877</guid>
  </item> 
 </channel>
</rss>