<?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 : Drop command bar split button with code</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Drop command bar split button with code]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:27:20 +0000</pubDate>
  <lastBuildDate>Tue, 05 May 2015 11:26:09 +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=22528</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[Drop command bar split button with code : Thank you for that, will give...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22528&amp;PID=73378&amp;title=drop-command-bar-split-button-with-code#73378</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3253">Mr.Den</a><br /><strong>Subject:</strong> 22528<br /><strong>Posted:</strong> 05 May 2015 at 11:26am<br /><br />Thank you for that, will give it a try.]]>
   </description>
   <pubDate>Tue, 05 May 2015 11:26:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22528&amp;PID=73378&amp;title=drop-command-bar-split-button-with-code#73378</guid>
  </item> 
  <item>
   <title><![CDATA[Drop command bar split button with code : Create a toolbar and add the controls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22528&amp;PID=73259&amp;title=drop-command-bar-split-button-with-code#73259</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4669">gibra</a><br /><strong>Subject:</strong> 22528<br /><strong>Posted:</strong> 18 April 2015 at 5:38am<br /><br /><div>Create a toolbar and add the controls as you need:</div><table width="99%"><tr><td><pre class="BBcode"><div><span style="line-height: 1.4;"><div>With CommandBars1</div><div>&nbsp; &nbsp; Set cToolbar = .Add("Toolbar", xtpBarTop)</div><div>End With</div></span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;"><div>Dim btnSplit As CommandBarControl</div><div>Set btnSplit = AddControl(cToolbar.Controls, xtpControlSplitButtonPopup, ID_16_HELP, "Help", True, "Open help")</div><div>With btnSplit</div><div>&nbsp; &nbsp; .CommandBar.Controls.Add xtpControlButton, ID_16_CONTACTUS, "Contact us"</div><div>&nbsp; &nbsp; .CommandBar.Controls.Add xtpControlButton, ID_16_ABOUT, "About"</div><div>End With</div><div></pre></td></tr></table></div><div><br></div><div>Later, you simulate the DrowDown&nbsp;behavior:</div><div><table width="99%"><tr><td><pre class="BBcode"></div></span></div><div><span style="line-height: 1.4;">Private Sub PushButton1_Click()</span><div>&nbsp; &nbsp; Dim btn As CommandBarControl</div><div>&nbsp; &nbsp; With CommandBars1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Set btn = .FindControl(xtpControlSplitButtonPopup, ID_16_HELP, , True)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; If Not btn Is Nothing Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; btn.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendKeys "{F4}{Down}"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; End With</div><div>End Sub</div><div><br></div><div></pre></td></tr></table></div><div><br></div><div><br></div><div>Generic <b>AddControl</b> function:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>Public Function AddControl(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</div><div>&nbsp; &nbsp; Dim Control As CommandBarControl</div><div>&nbsp; &nbsp; Set Control = Controls.Add(ControlType, ID, Caption)</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Control.BeginGroup = BeginGroup</div><div>&nbsp; &nbsp; Control.DescriptionText = DescriptionText</div><div>&nbsp; &nbsp; Control.Style = ButtonStyle</div><div>&nbsp; &nbsp; Control.Category = Category</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Set AddControl = Control</div><div>&nbsp; &nbsp;&nbsp;</div><div>End Function</div></div><div></pre></td></tr></table></div></div>]]>
   </description>
   <pubDate>Sat, 18 Apr 2015 05:38:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22528&amp;PID=73259&amp;title=drop-command-bar-split-button-with-code#73259</guid>
  </item> 
  <item>
   <title><![CDATA[Drop command bar split button with code : Is there any way to have a command...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22528&amp;PID=73075&amp;title=drop-command-bar-split-button-with-code#73075</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3253">Mr.Den</a><br /><strong>Subject:</strong> 22528<br /><strong>Posted:</strong> 02 February 2015 at 10:34am<br /><br />Is there any way to have a command bar button (xtpControlSplitButtonPopup) drop down or open like the combo control does by setting the &nbsp;'<span style="line-height: 1.4;">.DroppedState = True' &nbsp;property?</span>]]>
   </description>
   <pubDate>Mon, 02 Feb 2015 10:34:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22528&amp;PID=73075&amp;title=drop-command-bar-split-button-with-code#73075</guid>
  </item> 
 </channel>
</rss>