<?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 : CommandBar selected item</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CommandBar selected item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 20:06:28 +0000</pubDate>
  <lastBuildDate>Sat, 07 Jun 2008 05:15: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=10915</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[CommandBar selected item :   Mr.Den wrote:    Careful...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36400&amp;title=commandbar-selected-item#36400</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10915<br /><strong>Posted:</strong> 07 June 2008 at 5:15am<br /><br /><FONT size=2><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Mr.Den" alt="Originally posted by Mr.Den" style="vertical-align: text-bottom;" /> <strong>Mr.Den wrote:</strong><br /><br />&nbsp; </FONT><DIV><DIV><FONT size=2></FONT></DIV><DIV><FONT size=2></FONT></DIV><FONT size=2>Careful with checking variable states like that, if Form1 is not loaded, referencing a public variable on&nbsp;Form1 will cause it to load if I am not mistaken.</FONT></DIV><DIV><FONT size=2></td></tr></table> </FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>Hi,</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>Only the Form_Initialize event will be fired. </FONT></DIV>]]>
   </description>
   <pubDate>Sat, 07 Jun 2008 05:15:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36400&amp;title=commandbar-selected-item#36400</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar selected item :   Aaron wrote:  Control.Checked...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36358&amp;title=commandbar-selected-item#36358</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3253">Mr.Den</a><br /><strong>Subject:</strong> 10915<br /><strong>Posted:</strong> 06 June 2008 at 11:19am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Checked =&nbsp;Form1.IsLoaded 'Isloaded = public variable in form1&nbsp;which is set to true when form is loaded</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>Careful with checking variable states like that, if Form1 is not loaded, referencing a public variable on&nbsp;Form1 will cause it to load if I am not mistaken.</DIV><DIV>&nbsp;</DIV><DIV>You could set an object as a form;</DIV><DIV>&nbsp;</DIV><DIV>Private&nbsp;obFrm As Form</DIV><DIV>&nbsp;</DIV><DIV>Somehwere in code when form is needed: </DIV><DIV>&nbsp;</DIV><DIV>Set obFrm = New Form1<BR>obFrm.Show</DIV><DIV>&nbsp;</DIV><DIV>then later in code, check it like this:</DIV><DIV>&nbsp;</DIV><DIV>If Not obFrm Is Nothing Then<BR>&nbsp;&nbsp;&nbsp; 'form is loaded<BR>End If</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 06 Jun 2008 11:19:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36358&amp;title=commandbar-selected-item#36358</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar selected item : Hi,  The CommandBars_Executewill...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36332&amp;title=commandbar-selected-item#36332</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10915<br /><strong>Posted:</strong> 05 June 2008 at 3:35pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>The CommandBars_Execute&nbsp;will be fired when a button is pressed&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>When you want to check which item is active you can use the CommandBars_Update event</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>&nbsp;&nbsp;&nbsp; Select Case Control.ID<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_TOOLBAR_BUTTON_1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Checked =&nbsp;Form1.IsLoaded 'Isloaded = public variable in form1&nbsp;which is set to true when form is loaded</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_TOOLBAR_BUTTON_2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Checked =&nbsp;Form2.IsLoaded 'Isloaded = public variable in form2&nbsp;which is set to true when form is loaded&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; End Select<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 05 Jun 2008 15:35:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36332&amp;title=commandbar-selected-item#36332</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar selected item : Assuming you want the control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36331&amp;title=commandbar-selected-item#36331</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 10915<br /><strong>Posted:</strong> 05 June 2008 at 3:32pm<br /><br />Assuming you want the control with ID 101 checked:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<br>Select Case Control.id<br>&nbsp;&nbsp;&nbsp; Case 101<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Control.Checked = True<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; form1.Show 1<br>&nbsp;&nbsp;&nbsp; Case 102<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; form2.Show 1<br>end select<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Thu, 05 Jun 2008 15:32:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36331&amp;title=commandbar-selected-item#36331</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar selected item : Yes but how? When i click on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36329&amp;title=commandbar-selected-item#36329</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2709">lexicon</a><br /><strong>Subject:</strong> 10915<br /><strong>Posted:</strong> 05 June 2008 at 2:42pm<br /><br />Yes but how?<DIV>When i click on a button i'm using this procedure to check what is pressed</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>Select Case Control.id<BR>&nbsp;&nbsp;&nbsp; Case 101<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; form1.Show 1<BR>&nbsp;&nbsp;&nbsp; Case 102<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; form2.Show 1<BR>end select</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Where do i write the .checked=true?</DIV>]]>
   </description>
   <pubDate>Thu, 05 Jun 2008 14:42:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36329&amp;title=commandbar-selected-item#36329</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar selected item : Hi,  You mean like a checked...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36320&amp;title=commandbar-selected-item#36320</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10915<br /><strong>Posted:</strong> 05 June 2008 at 11:14am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You mean like a checked button?</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20080605_111205_ToolbarCheckedB.bmp" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Just like an ordinary button with &nbsp;.Checked = true</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 05 Jun 2008 11:14:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36320&amp;title=commandbar-selected-item#36320</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar selected item : a button  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36312&amp;title=commandbar-selected-item#36312</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2709">lexicon</a><br /><strong>Subject:</strong> 10915<br /><strong>Posted:</strong> 05 June 2008 at 9:24am<br /><br />a button<DIV></DIV>]]>
   </description>
   <pubDate>Thu, 05 Jun 2008 09:24:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36312&amp;title=commandbar-selected-item#36312</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar selected item : Hi,  Please, explain what you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36310&amp;title=commandbar-selected-item#36310</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10915<br /><strong>Posted:</strong> 05 June 2008 at 9:14am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Please, explain what you mean by: "an item"</DIV>]]>
   </description>
   <pubDate>Thu, 05 Jun 2008 09:14:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36310&amp;title=commandbar-selected-item#36310</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar selected item : Hello How to implement so when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36297&amp;title=commandbar-selected-item#36297</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2709">lexicon</a><br /><strong>Subject:</strong> 10915<br /><strong>Posted:</strong> 05 June 2008 at 4:56am<br /><br />Hello<DIV>How to implement so when i'm selecting an item from commandbar to stay selected until i'm selecting something else?</DIV><DIV>&nbsp;</DIV><DIV>Thank you</DIV>]]>
   </description>
   <pubDate>Thu, 05 Jun 2008 04:56:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10915&amp;PID=36297&amp;title=commandbar-selected-item#36297</guid>
  </item> 
 </channel>
</rss>