<?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 : Combo boxes with &#039;draggable&#039; icons</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Combo boxes with &#039;draggable&#039; icons]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 06:38:43 +0000</pubDate>
  <lastBuildDate>Tue, 05 Feb 2008 13:16:44 +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=9494</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[Combo boxes with &#039;draggable&#039; icons : Neil, actually galleries support...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30837&amp;title=combo-boxes-with-draggable-icons#30837</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9494<br /><strong>Posted:</strong> 05 February 2008 at 1:16pm<br /><br /><P>Neil, actually galleries support drag.</P><DIV>If you have last CommandBars, try this sample:</DIV><DIV>&nbsp;<a href="https://forum.codejock.com/uploads/20080205_131632_Vb6GalleryDrag.zip" target="_blank">GalleryDrag.zip</A></DIV>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 13:16:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30837&amp;title=combo-boxes-with-draggable-icons#30837</guid>
  </item> 
  <item>
   <title><![CDATA[Combo boxes with &#039;draggable&#039; icons : Neil,  Here&amp;#039;s the post...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30828&amp;title=combo-boxes-with-draggable-icons#30828</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9494<br /><strong>Posted:</strong> 05 February 2008 at 12:09pm<br /><br />Neil,<DIV>&nbsp;</DIV><DIV>Here's the post as you asked me to add to the original post</DIV><DIV>&nbsp;</DIV><DIV>Aaron,</DIV><DIV>&nbsp;</DIV><DIV>This is what I'm trying to do. I have a rather long list that I want to display in a combo box in a toolbox. thanks to the code you sent me, I now know how to place the combo box in a toolbar, and how to add images to the toolbar.<BR><BR>There are two other things that I still need to find out how to do:<BR><BR>1). Restrict the number of items of items on display, at any one time. I will have potentially, over 100 items to display in the combo box, but I want to be able to limit that to a reasonable number (say 10). Ideally, I would like to make it possible for the user to type in the first <BR>character, and then simply show items begining with that character. I could have sworn that I saw a CommandBar example somewhere that shows how to filter items in a dropdown list as a user is typing - but for the lif e of me, I cannot find that anywhere - and I've searched EVERYWHERE. If I can find out how to do this (or similar), that would be absolutely fantastic - since showing over 100 items in a menu is not really practical.<BR><BR>2). Implementing 'drag drop, so that a user can select an item from the list, drag it and drop it on (say) a form.<BR><BR>Thanks very much for takling the time out to help me out.<BR><BR></DIV>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 12:09:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30828&amp;title=combo-boxes-with-draggable-icons#30828</guid>
  </item> 
  <item>
   <title><![CDATA[Combo boxes with &#039;draggable&#039; icons : Oleg,Does any other &amp;#039;list...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30824&amp;title=combo-boxes-with-draggable-icons#30824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9494<br /><strong>Posted:</strong> 05 February 2008 at 10:20am<br /><br />Oleg,<br><br>Does any other 'list of items' control (that can be displayed in a toolbar) support drag?<br>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 10:20:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30824&amp;title=combo-boxes-with-draggable-icons#30824</guid>
  </item> 
  <item>
   <title><![CDATA[Combo boxes with &#039;draggable&#039; icons : Hi Aaron,In case you are struggling...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30822&amp;title=combo-boxes-with-draggable-icons#30822</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9494<br /><strong>Posted:</strong> 05 February 2008 at 9:36am<br /><br />Hi Aaron,<br><br>In case you are struggling to provide an example that shows how to do what I wanted to do (thanks for the last snippet by the way - great help), please post the last message I sent to you, in here, so that maybe someone else may take a look at it if you are not quite sure how to solve it - I accidentally posted it to you as a private message, and I can't retrieve the text I sent.<br><br>Thanks<br><br>Neil<br>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 09:36:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30822&amp;title=combo-boxes-with-draggable-icons#30822</guid>
  </item> 
  <item>
   <title><![CDATA[Combo boxes with &#039;draggable&#039; icons : Neil, Delete the Update event...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30821&amp;title=combo-boxes-with-draggable-icons#30821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9494<br /><strong>Posted:</strong> 05 February 2008 at 9:23am<br /><br /><P>Neil,</P><DIV>Delete the Update event I previously sent you. And replace the Execute event with this new one.</DIV><DIV>&nbsp;</DIV><DIV><BR>Const ID_TOOLBAR_COMBO = 1000 '' this is the ID for the SplitButton</DIV><P>Private Function LoadToolbars()<BR>&nbsp;&nbsp;&nbsp; AddButton CommandBars(1).Controls, xtpControlSplitButtonPopup, ID_TOOLBAR_COMBO, "Select item...", True, "Some text...."<BR>End Function</P><P><BR>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; <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;&nbsp;&nbsp;&nbsp;&nbsp; Control.BeginGroup = BeginGroup<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.DescriptionText = DescriptionText<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Style = ButtonStyle<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Category = Category<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set AddButton = Control<BR>&nbsp;&nbsp;&nbsp; <BR>End Function</P><P><BR>Private Sub CommandBars_InitCommandsPopup(ByVal CommandBar As XtremeCommandBars.ICommandBar)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select Case CommandBar.BarID<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBar.Controls.DeleteAll<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBar.SetIconSize 16, 16 ''(or whatever iconsize you need)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim i As Integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim selectionControl As CommandBarButton<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 1 To 20<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set selectionControl = CommandBar.Controls.Add(xtpControlButton, i, "Item " &amp; i)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectionControl.CloseSubMenuOnClick = True ''False won't hide the dropdown section when clicked<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectionControl.DefaultItem = True ''Text will be bold (maybe for previous selected items)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectionControl.Enabled = True ''<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectionControl.Style = xtpButtonIconAndCaption<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If i Mod 10 = 1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectionControl.Flags = xtpFlagWrapRow ''every 10 items to the next column<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Select<BR>&nbsp;&nbsp;&nbsp; <BR>End Sub</P><P><BR>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select Case Control.Id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 1 To 20<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim controlSelect As CommandBarButton<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set controlSelect = CommandBars.FindControl(, ID_TOOLBAR_COMBO)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; controlSelect.Caption = Control.Caption<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; End Select<BR>&nbsp;&nbsp;&nbsp; <BR>End Sub<BR>Private Sub Form_Load()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LoadToolbars<BR>End Sub<BR></P><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 09:23:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30821&amp;title=combo-boxes-with-draggable-icons#30821</guid>
  </item> 
  <item>
   <title><![CDATA[Combo boxes with &#039;draggable&#039; icons : ok, found it as &amp;#039;xtpContr...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30818&amp;title=combo-boxes-with-draggable-icons#30818</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9494<br /><strong>Posted:</strong> 05 February 2008 at 8:15am<br /><br />ok, found it as '<strong>xtpControlSplitButtonPopup'<br><br>I'm now looking to see if I can create an example, using this button type, and put in a toolbar - if you could send a few lines that show how to do this, I'd be very grateful.<br><br>Thanks<br><br>Neil<br></strong>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 08:15:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30818&amp;title=combo-boxes-with-draggable-icons#30818</guid>
  </item> 
  <item>
   <title><![CDATA[Combo boxes with &#039;draggable&#039; icons : I did a quick search for &amp;#039...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30816&amp;title=combo-boxes-with-draggable-icons#30816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9494<br /><strong>Posted:</strong> 05 February 2008 at 8:09am<br /><br />I did a quick search for 'ControlSplitButtonPopup' in the documentation - no items were found. I tried various combinations of the term, but still found nothing. Is this the correct spelling of the object?]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 08:09:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30816&amp;title=combo-boxes-with-draggable-icons#30816</guid>
  </item> 
  <item>
   <title><![CDATA[Combo boxes with &#039;draggable&#039; icons : Hi Aaron,Sorry to bother you again,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30814&amp;title=combo-boxes-with-draggable-icons#30814</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9494<br /><strong>Posted:</strong> 05 February 2008 at 7:37am<br /><br />Hi Aaron,<br><br>Sorry to bother you again, but could you please post a few lines of code to show how I may do this (I prefer the second option - using ControlSplitButtonPopup). I am quite new to the CommandBar controls, and the object heirarchy is proving to be a bit of a 'forest' to navigate through quickly without samploe snippets. <br><br>Thanks]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 07:37:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30814&amp;title=combo-boxes-with-draggable-icons#30814</guid>
  </item> 
  <item>
   <title><![CDATA[Combo boxes with &#039;draggable&#039; icons : Neil,   You could add a CommandBarControlCustom...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30801&amp;title=combo-boxes-with-draggable-icons#30801</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9494<br /><strong>Posted:</strong> 05 February 2008 at 2:00am<br /><br />Neil, <DIV>&nbsp;</DIV><DIV>You could add a CommandBarControlCustom (in your case a combobox) to your commandbar and set the handle to your own combobox which does support drag&amp;drop.</DIV><DIV>&nbsp;</DIV><DIV>An other option would be adding a ControlSplitButtonPopup to your commandbar. Add the items you want with text and icon. This option isn't that different when using a combox, you have a dropdown section just like the combobox and CommandBars seem to support drag&amp;drop so this should do the trick <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 02:00:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30801&amp;title=combo-boxes-with-draggable-icons#30801</guid>
  </item> 
  <item>
   <title><![CDATA[Combo boxes with &#039;draggable&#039; icons : Hi, Unfortuantelly Combo doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30799&amp;title=combo-boxes-with-draggable-icons#30799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9494<br /><strong>Posted:</strong> 05 February 2008 at 1:10am<br /><br />Hi,<DIV>Unfortuantelly Combo doesn't support drag. :-(</DIV>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 01:10:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9494&amp;PID=30799&amp;title=combo-boxes-with-draggable-icons#30799</guid>
  </item> 
 </channel>
</rss>