<?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 : Setting c&#111;ntrol properties</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Setting c&#111;ntrol properties]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:42:19 +0000</pubDate>
  <lastBuildDate>Thu, 10 Feb 2005 09:09:12 +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=1772</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[Setting c&#111;ntrol properties : To clarify Oleg&amp;#039;s answer,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1772&amp;PID=5059&amp;title=setting-control-properties#5059</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=756">gshawn</a><br /><strong>Subject:</strong> 1772<br /><strong>Posted:</strong> 10 February 2005 at 9:09am<br /><br /><P>To clarify Oleg's answer, the CodeJock controls still work in a somewhat similar way. Whether created via code or through the GUI Designer, each control is assigned a unique ID. In the CommandBars_Update event, you should do a "Select Case Control.ID." If there are multiple&nbsp;instances of the same control (for example, an About button that is both on a menu bar and in a toolbar) that share the same ID and one of them is disabled&nbsp;through the Update event, the other one will be disabled as well.</P><P>The following will enable/disable a save button both in the menu and standard toolbar.</P><P>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_FILE_SAVE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Enabled = (FileHasChanged = True)<BR>&nbsp;&nbsp;&nbsp; End Select<BR>End Sub</P>]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 09:09:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1772&amp;PID=5059&amp;title=setting-control-properties#5059</guid>
  </item> 
  <item>
   <title><![CDATA[Setting c&#111;ntrol properties : No, it doent&amp;#039;t work with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1772&amp;PID=5053&amp;title=setting-control-properties#5053</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1772<br /><strong>Posted:</strong> 10 February 2005 at 1:25am<br /><br />No, it doent't work with our controls. Update event is the way to update all control.]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 01:25:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1772&amp;PID=5053&amp;title=setting-control-properties#5053</guid>
  </item> 
  <item>
   <title><![CDATA[Setting c&#111;ntrol properties : Hello, Is there a way to disable...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1772&amp;PID=5047&amp;title=setting-control-properties#5047</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=972">Marek</a><br /><strong>Subject:</strong> 1772<br /><strong>Posted:</strong> 09 February 2005 at 5:39pm<br /><br /><P><FONT size=2>Hello,</FONT></P><P><FONT size=2>Is there a way to disable or set the checked property on all instances of the same control, without using the Update event and without iterating through all controls in each command bar? Say I have the About control on the Help menu, and on the Standard command bar, and a user puts the same control on a new customized command bar. Is there a way to set a property on the 'parent' control so that the settings propogate to all instances without having to use the Update event?</FONT></P><P><FONT size=2>We are considering updating our menu from the Infragistics toolbars which function like this.&nbsp; Each button displayed on a menu or toolbar is an instance of a main ‘parent’ button.&nbsp; Setting properties on this parent button propagates the property changes to all instances of the button.&nbsp; This makes enabling/disabling all instances of a button a piece of cake.&nbsp; Just use the buttons ID to do a find, this finds the parent button, any properties changed on this are reflected on the child controls.&nbsp; Do the codejock controls have a similar technique, or how do I go about doing something similar?</FONT></P><P><FONT size=2>Thanks, </FONT></P><P><FONT size=2>-m</FONT></P>]]>
   </description>
   <pubDate>Wed, 09 Feb 2005 17:39:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1772&amp;PID=5047&amp;title=setting-control-properties#5047</guid>
  </item> 
 </channel>
</rss>