<?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 : CommandBars not processing mouse click</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CommandBars not processing mouse click]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 18:46:04 +0000</pubDate>
  <lastBuildDate>Wed, 11 Nov 2009 05:28:46 +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=15570</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[CommandBars not processing mouse click : Still the same in 13.1. Don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15570&amp;PID=54735&amp;title=commandbars-not-processing-mouse-click#54735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 15570<br /><strong>Posted:</strong> 11 November 2009 at 5:28am<br /><br />Still the same in 13.1. Don't know about 13.2. Seems click/mousedown is 'timing out' somehow - but mouseover effects etc still work ok.<br /><br />It's ok though. I've reworked things so not so much cpu resources are used (treat the cause not the symptom) and all is well.]]>
   </description>
   <pubDate>Wed, 11 Nov 2009 05:28:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15570&amp;PID=54735&amp;title=commandbars-not-processing-mouse-click#54735</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars not processing mouse click : Hi,  Maybe it was fixed after...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15570&amp;PID=54686&amp;title=commandbars-not-processing-mouse-click#54686</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15570<br /><strong>Posted:</strong> 10 November 2009 at 1:52am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Maybe it was fixed after 12.1 but I can't catch it: </DIV><DIV>&nbsp;</DIV><DIV>Execute&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11/10/2009 9:52:07 AM <BR>Execute&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11/10/2009 9:52:08 AM <BR>Execute&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11/10/2009 9:52:08 AM <BR>Execute&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11/10/2009 9:52:08 AM </DIV><DIV>&nbsp;</DIV><DIV>Maybe you can check last evaluation ?</DIV>]]>
   </description>
   <pubDate>Tue, 10 Nov 2009 01:52:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15570&amp;PID=54686&amp;title=commandbars-not-processing-mouse-click#54686</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars not processing mouse click : Here&amp;#039;s code:   Option Explicit  Private...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15570&amp;PID=54654&amp;title=commandbars-not-processing-mouse-click#54654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 15570<br /><strong>Posted:</strong> 09 November 2009 at 9:02am<br /><br />Here's code:<br /><br /><font color=blue><br />Option Explicit<br /><br />Private Sub CommandBars1_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<br />Debug.Print "Execute", Now<br />End Sub<br /><br /><br />Private Sub Form_Load()<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim bar As CommandBar<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Me.CommandBars1.DeleteAll<br />&nbsp;&nbsp;&nbsp;&nbsp;Set bar = Me.CommandBars1.Add("Toolbar", xtpBarTop)<br />&nbsp;&nbsp;&nbsp;&nbsp;bar.Controls.Add xtpControlButton, 1000, "Button1"<br />&nbsp;&nbsp;&nbsp;&nbsp;bar.Controls.Add xtpControlButton, 1001, "Button2"<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;Timer1.Interval = 10<br />&nbsp;&nbsp;&nbsp;&nbsp;Timer1.Enabled = True<br />End Sub<br /><br />Private Sub pDraw()<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim i As Long<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim r As Byte, g As Byte, b As Byte<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim x As Long, y As Long, x2 As Long, y2 As Long<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Cls<br />&nbsp;&nbsp;&nbsp;&nbsp;Randomize<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For i = 1 To 1000<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r = CByte(255 * Rnd)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g = CByte(255 * Rnd)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b = CByte(255 * Rnd)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.ForeColor = RGB(r, g, b)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x = Me.ScaleWidth * Rnd<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x2 = Me.ScaleWidth * Rnd<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y = Me.ScaleHeight * Rnd<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y2 = Me.ScaleHeight * Rnd<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.Line (x, y)-(x2, y2)<br />&nbsp;&nbsp;&nbsp;&nbsp;Next<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;DoEvents&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'this is the offending line<br />&nbsp;&nbsp;&nbsp;<br />End Sub<br /><br />Private Sub Timer1_Timer()<br />pDraw<br />End Sub<br /></font><br /><br />I run this and I see missed clicks in commandbar. Also commandbar can get in bad state (see image - button1 is down, button2 is hottracked). <br /><br /><img src="uploads/20091109_090034_Image1.png" border="0"><br /><br />Comment out DoEvents and all is ok.<br /><br />Thing is, I need to DoEvents. <br /><br />I've found workaround by subclassing CommandBar mousedown, consuming message and calling Execute on the SelectedControl myself. This works for normal CommandBarButtons but it's going to get messy for popups etc.<br />]]>
   </description>
   <pubDate>Mon, 09 Nov 2009 09:02:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15570&amp;PID=54654&amp;title=commandbars-not-processing-mouse-click#54654</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars not processing mouse click : Hi,  Maybe you can create small...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15570&amp;PID=54648&amp;title=commandbars-not-processing-mouse-click#54648</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15570<br /><strong>Posted:</strong> 09 November 2009 at 3:25am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Maybe you can create small demo to show it ?</DIV>]]>
   </description>
   <pubDate>Mon, 09 Nov 2009 03:25:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15570&amp;PID=54648&amp;title=commandbars-not-processing-mouse-click#54648</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars not processing mouse click : I have a problem with commandbars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15570&amp;PID=54647&amp;title=commandbars-not-processing-mouse-click#54647</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 15570<br /><strong>Posted:</strong> 08 November 2009 at 9:28pm<br /><br />I have a problem with commandbars not raising Execute event when system resources are low. <br /><br />My app is playing video and there's a lot of GDI stuff going on while the video is running. If I run the video at small size (say, 320x240) then all is fine. If the video is larger (640x480) then the commandbars no longer process mouse clicks.<br /><br />The Update event still fires, and hottracking is still working - just not raising Execute event.<br />Command Buttons work ok, as do all other controls.<br />DoEvents doesn't help.<br /><br />Any ideas how I can fix this?]]>
   </description>
   <pubDate>Sun, 08 Nov 2009 21:28:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15570&amp;PID=54647&amp;title=commandbars-not-processing-mouse-click#54647</guid>
  </item> 
 </channel>
</rss>