<?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 : Help needed (update event Commandbars)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Help needed (update event Commandbars)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 22:09:08 +0000</pubDate>
  <lastBuildDate>Wed, 30 Jan 2008 04:50:19 +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=9438</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[Help needed (update event Commandbars) : Oleg,   Now I know why one...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30645&amp;title=help-needed-update-event-commandbars#30645</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9438<br /><strong>Posted:</strong> 30 January 2008 at 4:50am<br /><br /><P>Oleg,</P><DIV></DIV><DIV></DIV><DIV>Now I know why one toolbar is working correctly and the other ones keeps firing the events. I&nbsp;set CommandBarViews.Options.UpdatePeriod = 0 and now only 1 event for each&nbsp;control will be fired. This&nbsp;will do for now. The only thing I have to&nbsp;do is&nbsp;update the toolbar when external functions&nbsp;do some changes&nbsp;for the selected view.</DIV><DIV>&nbsp;</DIV><DIV>Thank you for your time. Can you do another thing for me? Please look in Xtreme DockingPanes, I have posted a problem regarding resize events with DockingPaneManager. This is a serious problem and I don't think other members can solve this for me. Thank you very much.&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 30 Jan 2008 04:50:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30645&amp;title=help-needed-update-event-commandbars#30645</guid>
  </item> 
  <item>
   <title><![CDATA[Help needed (update event Commandbars) : Hello,  9148 and 9149 are CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30632&amp;title=help-needed-update-event-commandbars#30632</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9438<br /><strong>Posted:</strong> 30 January 2008 at 1:23am<br /><br />Hello, <DIV>9148 and 9149 are CommandBars buildin controls - </DIV><DIV>&nbsp;</DIV><DIV>9148 is Expand button (XTP_ID_TOOLBAR_EXPAND)</DIV><DIV>9149 is Close button (XTP_ID_TOOLBAR_HIDE)</DIV>]]>
   </description>
   <pubDate>Wed, 30 Jan 2008 01:23:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30632&amp;title=help-needed-update-event-commandbars#30632</guid>
  </item> 
  <item>
   <title><![CDATA[Help needed (update event Commandbars) : Oleg,  It looks like the event...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30616&amp;title=help-needed-update-event-commandbars#30616</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9438<br /><strong>Posted:</strong> 29 January 2008 at 3:06pm<br /><br />Oleg,<DIV>&nbsp;</DIV><DIV>It looks like the event is generated by another CommandBar. I monitored the events and the id - 9148 and 9149 comes every time&nbsp;(this in a regular&nbsp;FORM). The id - 9148 came with events generated by an commandbar in a&nbsp;USERCONTROL (these update events are generated as they should be, one time for every button).</DIV><DIV>&nbsp;</DIV><DIV>Are 9148 and 9149 id's generated by CommandBars?&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Let me explain what I want:</DIV><DIV>I have a form with a toolbar for positioning&nbsp;areas&nbsp;(left,top,width.height) , this is&nbsp;the mainview. Then I have a USERCONTROL with also a toolbar for positioning items like the one in the form, these will be the subviews.</DIV><DIV>&nbsp;</DIV><DIV>On the&nbsp;form&nbsp;and every USERCONTROL a commandbar control is placed</DIV><DIV>The buttons for the toolbars&nbsp;will be&nbsp;added in the formLoad event. Like this for the USERCONTROL:</DIV><DIV>&nbsp;</DIV><DIV>''Add commandbar</DIV><DIV>Set toolBarSubViews = CommandBarSubviews.Add("Tools subview", xtpBarTop)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>AddButton CommandBarSubviews(1).Controls, xtpControlComboBox, ID_TOOLBAR_COMBOCONTROLITEMS, "", True, "Select item for positioning"<BR></DIV><DIV>and for every button needed....&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>for the FORM:</DIV><DIV>&nbsp;</DIV><DIV>Dim generalTools As CommandBar<BR>&nbsp;&nbsp;&nbsp; Set generalTools = CommandBarViews.Add("General", xtpBarTop)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; generalTools.SetIconSize 32, 32<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generalTools.EnableDocking xtpFlagFloating<BR>&nbsp;&nbsp;&nbsp; AddButton generalTools.Controls,&nbsp; xtpControlEdit,&nbsp;ID_TOOLBAR_EDITUNITS, "Units", False, "Settings editing views", xtpButtonCaption<BR>&nbsp;</DIV><DIV>and for every button needed....&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>The AddButton function I copied from a sample in CommandBars</DIV><P>So all of the buttons are defined in a resource. The only ID's which I cannot trace are 9148 and 9149. </P><DIV>Thanx in advance</DIV>]]>
   </description>
   <pubDate>Tue, 29 Jan 2008 15:06:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30616&amp;title=help-needed-update-event-commandbars#30616</guid>
  </item> 
  <item>
   <title><![CDATA[Help needed (update event Commandbars) : Hello, Maybe other toolbars in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30613&amp;title=help-needed-update-event-commandbars#30613</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9438<br /><strong>Posted:</strong> 29 January 2008 at 1:13pm<br /><br />Hello,<DIV>Maybe other toolbars in disabled window or you change it in code or don't have controls with Id &gt; 0. </DIV>]]>
   </description>
   <pubDate>Tue, 29 Jan 2008 13:13:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30613&amp;title=help-needed-update-event-commandbars#30613</guid>
  </item> 
  <item>
   <title><![CDATA[Help needed (update event Commandbars) : I know its designed.But why does...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30608&amp;title=help-needed-update-event-commandbars#30608</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9438<br /><strong>Posted:</strong> 29 January 2008 at 12:51pm<br /><br /><P>I know its designed.&nbsp;But why does it work with 1 toolbar and NOT with the other one. Several toolbars in my project fire only 1 event for every button&nbsp;in it and one toolbar keeps firing events for every button&nbsp;all the time even when nothing is being pressed. </P><DIV>&nbsp;</DIV><DIV>I don't want to handle the updating, it would be easier to use the Commandbars_Update handler since some buttons needs to be updated from various functions in my app. Not just the click event</DIV>]]>
   </description>
   <pubDate>Tue, 29 Jan 2008 12:51:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30608&amp;title=help-needed-update-event-commandbars#30608</guid>
  </item> 
  <item>
   <title><![CDATA[Help needed (update event Commandbars) : Hi,  Its designed. If you don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30604&amp;title=help-needed-update-event-commandbars#30604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9438<br /><strong>Posted:</strong> 29 January 2008 at 12:00pm<br /><br />Hi, <DIV>Its designed. If you don't need Update handler just create some Sub and call it from Execute event. </DIV><DIV>or update controls state using Actions - CommandBars.Actions(ID_FILE_COPY).Enabled = False</DIV>]]>
   </description>
   <pubDate>Tue, 29 Jan 2008 12:00:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30604&amp;title=help-needed-update-event-commandbars#30604</guid>
  </item> 
  <item>
   <title><![CDATA[Help needed (update event Commandbars) : I have several toolbars in different...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30601&amp;title=help-needed-update-event-commandbars#30601</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9438<br /><strong>Posted:</strong> 29 January 2008 at 11:37am<br /><br /><P>I have several toolbars in different forms, but in some forms the CommandBars_Update event keeps firing (well about 20 times a second) for no reason. I know I can&nbsp;set the update rate to a value but I don't want that.&nbsp;I wonder why this is happening. Normally this event is fired when something is clicked (this seems to be the case in the other forms and this is what I want, 1 click &gt; 1 update <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0">). Can someone explain to me why this happens or what to do about it. Please don't tell me its'a bug, in that case I will burst in <img src="https://forum.codejock.com/smileys/smiley19.gif" border="0"></P><DIV>Thanx in advance </DIV>]]>
   </description>
   <pubDate>Tue, 29 Jan 2008 11:37:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9438&amp;PID=30601&amp;title=help-needed-update-event-commandbars#30601</guid>
  </item> 
 </channel>
</rss>