<?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 : Icon Update</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Icon Update]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 19:31:11 +0000</pubDate>
  <lastBuildDate>Wed, 20 Jun 2007 11:12:23 +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=7406</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[Icon Update : Sounds like some architectural...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23845&amp;title=icon-update#23845</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1446">apuhjee</a><br /><strong>Subject:</strong> 7406<br /><strong>Posted:</strong> 20 June 2007 at 11:12am<br /><br />Sounds like some architectural refactoring needs to occur <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0">]]>
   </description>
   <pubDate>Wed, 20 Jun 2007 11:12:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23845&amp;title=icon-update#23845</guid>
  </item> 
  <item>
   <title><![CDATA[Icon Update : Hi,  thanks, but  doevents...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23840&amp;title=icon-update#23840</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=724">User999</a><br /><strong>Subject:</strong> 7406<br /><strong>Posted:</strong> 20 June 2007 at 7:34am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>thanks, but</DIV><DIV>&nbsp;</DIV><DIV>doevents '--------------- This line </DIV><DIV>&nbsp;</DIV><DIV>is what we want to avoid (s.o.) because other operations could start with this line - and this shall not happen.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 20 Jun 2007 07:34:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23840&amp;title=icon-update#23840</guid>
  </item> 
  <item>
   <title><![CDATA[Icon Update : HI you can use Doevents command...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23839&amp;title=icon-update#23839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1827">free_user</a><br /><strong>Subject:</strong> 7406<br /><strong>Posted:</strong> 20 June 2007 at 7:21am<br /><br />HI<br />you can use Doevents command like this:<br />.Actions(MenüID1).IconId = ID_ActionIsRunning<br />doevents '---------------  This line<br />Do<br />....&nbsp;&nbsp;&nbsp;operation code..<br />Loop<br />.Actions(MenüID1).IconId = ID_ActionIsOver<br /> ]]>
   </description>
   <pubDate>Wed, 20 Jun 2007 07:21:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23839&amp;title=icon-update#23839</guid>
  </item> 
  <item>
   <title><![CDATA[Icon Update : Thank you for the hint. The overhead...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23834&amp;title=icon-update#23834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=724">User999</a><br /><strong>Subject:</strong> 7406<br /><strong>Posted:</strong> 20 June 2007 at 4:31am<br /><br /><DIV></DIV>Thank you for the hint. The overhead would be to big for an asynchronous solution in this case. But we found that the WinAPI function<DIV>&nbsp;</DIV><DIV>UpdateWindow .FindControl(, MenüID1).Parent.hwnd<BR></DIV><DIV>produces an immediate redraw of the parent commandbar. Hope that this is the solution.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 20 Jun 2007 04:31:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23834&amp;title=icon-update#23834</guid>
  </item> 
  <item>
   <title><![CDATA[Icon Update : I ran into a similar problem the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23800&amp;title=icon-update#23800</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1446">apuhjee</a><br /><strong>Subject:</strong> 7406<br /><strong>Posted:</strong> 19 June 2007 at 10:56am<br /><br />I ran into a similar problem the first time I tried writing "progress bar" code.&nbsp; The bar would sit at zero and then hit 100% once the running method had completed.<DIV></DIV><DIV>&nbsp;</DIV><DIV>The solution was to put the UI update code in a seperate thread by making Asynchronous method calls.&nbsp; That's in the .NET world.&nbsp; I'm not so sure you'll be so lucky with VB6.</DIV><DIV>&nbsp;</DIV><DIV>Here are two blog posts by Jeff Atwood related to the subject:</DIV><DIV>&nbsp;</DIV><DIV><a href="http://www.codinghorror.com/blog/archives/000159.html" target="_blank">http://www.codinghorror.com/blog/archives/000159.html</A></DIV><DIV>&nbsp;</DIV><DIV><a href="http://www.codinghorror.com/blog/archives/000370.html" target="_blank">http://www.codinghorror.com/blog/archives/000370.html</A></DIV><DIV>&nbsp;</DIV><DIV>Cheers ~ jp</DIV>]]>
   </description>
   <pubDate>Tue, 19 Jun 2007 10:56:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23800&amp;title=icon-update#23800</guid>
  </item> 
  <item>
   <title><![CDATA[Icon Update : Hi,  wewould liketo indicate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23797&amp;title=icon-update#23797</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=724">User999</a><br /><strong>Subject:</strong> 7406<br /><strong>Posted:</strong> 19 June 2007 at 9:52am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>we&nbsp;would like&nbsp;to indicate a running operation by changing the icon of a commandbar button (vb6 code):</DIV><DIV>&nbsp;</DIV><DIV>.Actions(MenüID1).IconId = ID_ActionIsRunning</DIV><DIV>Do</DIV><DIV>....&nbsp;&nbsp;&nbsp;operation code..</DIV><DIV>Loop</DIV><DIV><DIV>.Actions(MenüID1).IconId = ID_ActionIsOver</DIV><DIV>&nbsp;</DIV><DIV>The problem is that the icon&nbsp;does not update even if we use .redrawbar but only if&nbsp;we add a "DoEvents" statement between icon assignment and loop. But we cannot use "DoEvents" here for other reasons.</DIV><DIV>Is there a solution for this?</DIV><DIV>&nbsp;</DIV><DIV>Thank you</DIV><DIV>Andreas</DIV></DIV>]]>
   </description>
   <pubDate>Tue, 19 Jun 2007 09:52:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7406&amp;PID=23797&amp;title=icon-update#23797</guid>
  </item> 
 </channel>
</rss>