<?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 : multiple static levels.. then dynamic</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : multiple static levels.. then dynamic]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 15:22:12 +0000</pubDate>
  <lastBuildDate>Mon, 25 Jan 2010 10:17:57 +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=16064</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[multiple static levels.. then dynamic : Const ID_PLOT_PLOT = 150Const...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16064&amp;PID=56339&amp;title=multiple-static-levels-then-dynamic#56339</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 16064<br /><strong>Posted:</strong> 25 January 2010 at 10:17am<br /><br /><img src="uploads/20100125_101709_dynamic.png" height="475" width="412" border="0"><br><br>Const ID_PLOT_PLOT = 150<br>Const ID_PLOT_TRACK = 151<br>Const ID_PLOT_OFFICIAL_FORECAST = 152<br>Const ID_PLOT_MODEL = 153<br>Const ID_PLOT_CLIMATE_FORECAST = 154<br>Const ID_PLOT_PAST_STORM_TRACKS = 155<br><br>Const OFFICIAL_FORECAST_OFFSET = 5000<br>Const CLIMATE_FORECAST_OFFSET = 6000<br>Const PAST_STORM_TRACKS_OFFSET = 7000<br><br><br>Private Sub CommandBars_InitCommandsPopup(ByVal CommandBar As XtremeCommandBars.ICommandBar)<br><br>Dim Control As CommandBarControl<br>Dim Count As Integer<br>Dim nPos As Integer<br><br>If Not CommandBar.Parent Is Nothing Then<br><br>&nbsp;'*********************Displays ID_PLOT_OFFICIAL_FORECAST folder<br>&nbsp;If CommandBar.Parent.Id = ID_PLOT_OFFICIAL_FORECAST Then<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'Removes all ID_PLOT_OFFICIAL_FORECAST links and Folders<br>&nbsp;&nbsp;&nbsp;&nbsp;For Count = CommandBar.Controls.Count To 1 Step -1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'link<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If CommandBar.Controls(Count).Id &gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CommandBar.Controls(Count).Delete<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br>&nbsp;&nbsp;&nbsp;&nbsp;Next<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'***Now add all dynamic links for ID_PLOT_OFFICIAL_FORECAST<br>&nbsp;&nbsp;&nbsp;&nbsp;'It is up to you to set the start and end position for the number of items to add to this popup<br>&nbsp;&nbsp;&nbsp;&nbsp;'nStartPos = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;'For nPos = nStartPos To nEndPos<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'I am only adding 10 items, you can add yours liked described above<br>&nbsp;&nbsp;&nbsp;&nbsp;For nPos = 1 To 10<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SetControl = CommandBar.Controls.Add(xtpControlButton, (nPos +OFFICIAL_FORECAST_OFFSET), "Official Forecast " &amp; nPos, , True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.Caption = "Official Forecast " &amp; nPos<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.ToolTipText = "Official Forecast " &amp; nPos<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.DescriptionText = "Official Forecast " &amp; nPos<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.Style = xtpButtonCaption<br>&nbsp;&nbsp;&nbsp;&nbsp;Next<br>&nbsp;&nbsp;End If<br>&nbsp;&nbsp;<br>&nbsp;'*********************Displays ID_PLOT_CLIMATE_FORECAST folder<br>&nbsp;If CommandBar.Parent.Id = ID_PLOT_CLIMATE_FORECAST Then<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'Removes all ID_PLOT_CLIMATE_FORECAST links and Folders<br>&nbsp;&nbsp;&nbsp;&nbsp;For Count = CommandBar.Controls.Count To 1 Step -1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'link<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If CommandBar.Controls(Count).Id &gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CommandBar.Controls(Count).Delete<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br>&nbsp;&nbsp;&nbsp;&nbsp;Next<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'***Now add all dynamic links for ID_PLOT_CLIMATE_FORECAST<br>&nbsp;&nbsp;&nbsp;&nbsp;'It is up to you to set the start and end position for the number of items to add to this popup<br>&nbsp;&nbsp;&nbsp;&nbsp;'nStartPos = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;'For nPos = nStartPos To nEndPos<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'I am only adding 10 items, you can add yours liked described above<br>&nbsp;&nbsp;&nbsp;&nbsp;For nPos = 1 To 10<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SetControl = CommandBar.Controls.Add(xtpControlButton, (nPos +CLIMATE_FORECAST_OFFSET), "Climate Forecast " &amp; nPos, , True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.Caption = "Climate Forecast " &amp; nPos<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.ToolTipText = "Climate Forecast " &amp; nPos<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.DescriptionText = "Climate Forecast " &amp; nPos<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.Style = xtpButtonCaption<br>&nbsp;&nbsp;&nbsp;&nbsp;Next<br>&nbsp;&nbsp;End If<br><br>&nbsp;'*********************Displays ID_PLOT_PAST_STORM_TRACKS folder<br>&nbsp;If CommandBar.Parent.Id = ID_PLOT_PAST_STORM_TRACKS Then<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'Removes all ID_PLOT_PAST_STORM_TRACKS links and Folders<br>&nbsp;&nbsp;&nbsp;&nbsp;For Count = CommandBar.Controls.Count To 1 Step -1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'link<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If CommandBar.Controls(Count).Id &gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CommandBar.Controls(Count).Delete<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br>&nbsp;&nbsp;&nbsp;&nbsp;Next<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'***Now add all dynamic links for ID_PLOT_PAST_STORM_TRACKS<br>&nbsp;&nbsp;&nbsp;&nbsp;'It is up to you to set the start and end position for the number of items to add to this popup<br>&nbsp;&nbsp;&nbsp;&nbsp;'nStartPos = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;'For nPos = nStartPos To nEndPos<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;'I am only adding 10 items, you can add yours liked described above<br>&nbsp;&nbsp;&nbsp;&nbsp;For nPos = 1 To 10<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SetControl = CommandBar.Controls.Add(xtpControlButton, (nPos +PAST_STORM_TRACKS_OFFSET), "Past Storm Forecast " &amp; nPos, , True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.Caption = "Past Storm Forecast " &amp; nPos<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.ToolTipText = "Past Storm Forecast " &amp; nPos<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.DescriptionText = "Past Storm Forecast " &amp; nPos<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Control.Style = xtpButtonCaption<br>&nbsp;&nbsp;&nbsp;&nbsp;Next<br>&nbsp;&nbsp;End If<br>End If<br>End Sub<br>]]>
   </description>
   <pubDate>Mon, 25 Jan 2010 10:17:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16064&amp;PID=56339&amp;title=multiple-static-levels-then-dynamic#56339</guid>
  </item> 
  <item>
   <title><![CDATA[multiple static levels.. then dynamic : I am confused on how to create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16064&amp;PID=56327&amp;title=multiple-static-levels-then-dynamic#56327</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5820">wxperson</a><br /><strong>Subject:</strong> 16064<br /><strong>Posted:</strong> 24 January 2010 at 3:20pm<br /><br />I am confused on how to create a menu with 2 static levels and dynamiclevels beneath them.&nbsp;The tooltipcontext example did not quite fitbecause I have several static levels and then a dynamic one...<br><br>Theimage below shows OFFICIAL FORECAST, and TRACK WITH AVERAGE ERROR as 2static levels and then the dynamic level beneath TRACK WITH AVERAGEERROR which is the list of dates/times.<br><br><img src="uploads/20100124_151812_sample2.jpg" height="895" width="1541" border="0"><br><br><br>I have done someprototype (toolbar) code and managed to get to the first level (seeimage at bottom of post ).&nbsp;The following code is in the form.load event.<br><br>With ToolBar1.Controls<br>&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlSplitButtonPopup, 110, "Plot")<br>&nbsp;&nbsp;&nbsp; Control.CommandBar.Controls.Add xtpControlButton, 120, "Track"<br>&nbsp;&nbsp;&nbsp; Control.CommandBar.Controls.Add xtpControlPopup, 130, "Official Forecast"<br>&nbsp;&nbsp;&nbsp; Control.CommandBar.Controls.Add xtpControlButton, 140, "Model"<br>&nbsp;&nbsp;&nbsp; Control.CommandBar.Controls.Add xtpControlPopup, 150, "Climate Forecast"<br>&nbsp;&nbsp;&nbsp; Control.CommandBar.Controls.Add xtpControlPopup, 160, "Past Storm Tracks"<br>End With<br><br>WhereI am stuck is how do I create the static levels beneath OfficialForecast.. TRACK ONLY, TRACK WITH AVERAGE ERROR and AVERAGE ERROR ONLY?<br><br>Itmakes sense to me to put the definition of the next static level intothe form load event and not the initcommandspopup event.&nbsp;I would assumethe dynamic dates/times would go into that event.<br><br>The solution may be staring me in the face but I am not seeing it yet.&nbsp;Any help would be appreciated.<br><br>Thanks,<br><br>George<br><br><br><img src="uploads/20100124_151415_image3.jpg" height="519" width="645" border="0"><br>]]>
   </description>
   <pubDate>Sun, 24 Jan 2010 15:20:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16064&amp;PID=56327&amp;title=multiple-static-levels-then-dynamic#56327</guid>
  </item> 
 </channel>
</rss>