<?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 : SOLVED: Dynamically add items to Splitbutton</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : SOLVED: Dynamically add items to Splitbutton]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 00:32:09 +0000</pubDate>
  <lastBuildDate>Fri, 22 Aug 2008 02:38:37 +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=11918</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[SOLVED: Dynamically add items to Splitbutton : Hi Oleg,  That&amp;#039;s what I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11918&amp;PID=40247&amp;title=solved-dynamically-add-items-to-splitbutton#40247</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11918<br /><strong>Posted:</strong> 22 August 2008 at 2:38am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>That's what I was looking for <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0">&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 22 Aug 2008 02:38:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11918&amp;PID=40247&amp;title=solved-dynamically-add-items-to-splitbutton#40247</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Dynamically add items to Splitbutton : Hi,  Here another solution:  Private...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11918&amp;PID=40243&amp;title=solved-dynamically-add-items-to-splitbutton#40243</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11918<br /><strong>Posted:</strong> 22 August 2008 at 1:17am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Here another solution:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_InitCommandsPopup(ByVal CommandBar As XtremeCommandBars.ICommandBar)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim col As XtremeReportControl.ReportColumn<BR>&nbsp;&nbsp;&nbsp; Dim Control As CommandBarControl, ControlItem As CommandBarControl<BR>&nbsp;&nbsp;&nbsp; Dim ctrlButton As CommandBarButton<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If (Not CommandBar.Parent Is Nothing) Then<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If CommandBar.Parent.Id = 1002 Then<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; If currentReportVisible.Columns.Count &gt; 0 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each col In currentReportVisible.Columns<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ctrlButton = CommandBar.Controls.Add(xtpControlCheckBox, col.ItemIndex + 1 + 1002, col.Caption)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctrlButton.CloseSubMenuOnClick = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctrlButton.Checked = col.Visible<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next col<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub<BR></DIV><DIV>replace it in original sample.</DIV>]]>
   </description>
   <pubDate>Fri, 22 Aug 2008 01:17:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11918&amp;PID=40243&amp;title=solved-dynamically-add-items-to-splitbutton#40243</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Dynamically add items to Splitbutton : Hi Oleg,  Thanks, does this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11918&amp;PID=40215&amp;title=solved-dynamically-add-items-to-splitbutton#40215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11918<br /><strong>Posted:</strong> 21 August 2008 at 7:46am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>Thanks, <strong>does this mean it isn't possible with my original idea</strong>? </DIV><DIV>&nbsp;</DIV><DIV>When I have more options to add to the dropdown menu, it wouldn't be a bad idea to have a label to let the user know what to expect. But now, with only one option it looks kind of weird...</DIV><DIV>&nbsp;</DIV><DIV>I prefer just&nbsp;to build one menu item which can be used for several options: Menu, Toolbar and PopupMenu so creating a seperate toolbar just with same buttons isn't an option as well. </DIV><DIV>&nbsp;</DIV><DIV>If you think of&nbsp;something else, I mean another idea, you're welcome to share them with me <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Thanks again Oleg</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 21 Aug 2008 07:46:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11918&amp;PID=40215&amp;title=solved-dynamically-add-items-to-splitbutton#40215</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Dynamically add items to Splitbutton : Try this:  uploads/20080821_072153_e.zip ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11918&amp;PID=40212&amp;title=solved-dynamically-add-items-to-splitbutton#40212</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11918<br /><strong>Posted:</strong> 21 August 2008 at 7:22am<br /><br />Try this:<DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/20080821_072153_e.zip" target="_blank">uploads/20080821_072153_e.zip</A></DIV><DIV></DIV>]]>
   </description>
   <pubDate>Thu, 21 Aug 2008 07:22:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11918&amp;PID=40212&amp;title=solved-dynamically-add-items-to-splitbutton#40212</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Dynamically add items to Splitbutton : Hi,   I&amp;#039;m trying to make...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11918&amp;PID=40206&amp;title=solved-dynamically-add-items-to-splitbutton#40206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11918<br /><strong>Posted:</strong> 21 August 2008 at 5:45am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>I'm trying to make a dropdownmenu which can be used also as a toolbar and&nbsp;eventually as popupmenu. Just one function which create menu items for all&nbsp;options.&nbsp;I guess it is possible what I want but I can't get it right. Would someone be so kind and look at the code and tell me what&nbsp;to change. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;<a href="https://forum.codejock.com/uploads/20080821_054620_TestIssues.zip" target="_blank">uploads/20080821_054620_TestIssues.zip</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 21 Aug 2008 05:45:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11918&amp;PID=40206&amp;title=solved-dynamically-add-items-to-splitbutton#40206</guid>
  </item> 
 </channel>
</rss>