<?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 : Right-click bug in SyntaxEdit</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : Right-click bug in SyntaxEdit]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 21:49:53 +0000</pubDate>
  <lastBuildDate>Mon, 06 Oct 2008 03:20:00 +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=11875</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[Right-click bug in SyntaxEdit : Hello,   Thanks, Pierre, fixed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41661&amp;title=rightclick-bug-in-syntaxedit#41661</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11875<br /><strong>Posted:</strong> 06 October 2008 at 3:20am<br /><br />Hello, <DIV>&nbsp;</DIV><DIV>Thanks, Pierre, fixed for 12.1 release. Sorry for such delay.</DIV>]]>
   </description>
   <pubDate>Mon, 06 Oct 2008 03:20:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41661&amp;title=rightclick-bug-in-syntaxedit#41661</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click bug in SyntaxEdit : Hi PPL1...I took a look at the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41626&amp;title=rightclick-bug-in-syntaxedit#41626</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 11875<br /><strong>Posted:</strong> 03 October 2008 at 12:25pm<br /><br />Hi PPL1...<br><br>I took a look at the SyntaxEditor (I don't use it myself) to see if I could come up with a workaround, and I may have found one. I noticed that the control responds correctly to LEFT mouse button clicks, so I thought that I would try to simulate a left click during a right click, and it seems to work. Please note that I have only done limited testing, so there may be other problems to solve yet...<br><br>Try this code on a form with a SyntaxEdit (SyntaxEdit1) control:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Option Explicit<br><br>Private Type POINTAPI<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x As Long<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y As Long<br>End Type<br><br>Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long<br>Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)<br><br>Private Const MOUSEEVENTF_ABSOLUTE = &amp;H8000 '&nbsp; absolute move<br>Private Const MOUSEEVENTF_LEFTDOWN = &amp;H2 '&nbsp; left button down<br>Private Const MOUSEEVENTF_LEFTUP = &amp;H4 '&nbsp; left button up<br><br>Private m_IgnoreMouseDown As Boolean<br><br>Private Sub SyntaxEdit1_MouseDown(Button As Integer, Shift As Integer, x As Long, y As Long)<br>&nbsp;&nbsp; If Not m_IgnoreMouseDown Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Not a simulated mouse click, so process click as required<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select Case Button<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case vbRightButton<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Hide caret to prevent flickering<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.SyntaxEdit1.HideCaret = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case vbLeftButton<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Perform Left button processing here<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Select<br>&nbsp;&nbsp; End If<br>End Sub<br><br>Private Sub SyntaxEdit1_MouseUp(Button As Integer, Shift As Integer, x As Long, y As Long)<br>&nbsp;&nbsp; Dim l_Mouse As POINTAPI<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; Select Case Button<br>&nbsp;&nbsp; Case vbRightButton<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_IgnoreMouseDown = True&nbsp;&nbsp; ' Set flag to ignore simulated mouse click<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.SyntaxEdit1.HideCaret = False ' Show the caret<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Simulate mouse click<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mouse_event MOUSEEVENTF_ABSOLUTE + MOUSEEVENTF_LEFTDOWN, l_Mouse.x, l_Mouse.y, 0, 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mouse_event MOUSEEVENTF_ABSOLUTE + MOUSEEVENTF_LEFTUP, l_Mouse.x, l_Mouse.y, 0, 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_IgnoreMouseDown = False&nbsp; ' Set flag to process mouse clicks normally<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; End Select<br>End Sub<br></pre></td></tr></table><br><br><br>]]>
   </description>
   <pubDate>Fri, 03 Oct 2008 12:25:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41626&amp;title=rightclick-bug-in-syntaxedit#41626</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click bug in SyntaxEdit : Bump again... 6 weeks and no reply...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41616&amp;title=rightclick-bug-in-syntaxedit#41616</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1923">PPL1</a><br /><strong>Subject:</strong> 11875<br /><strong>Posted:</strong> 03 October 2008 at 9:16am<br /><br />Bump again...&nbsp; 6 weeks and no reply from CJ (here or in customer support).<DIV>&nbsp;</DIV><DIV>A simple acknowledgement would be nice...</DIV>]]>
   </description>
   <pubDate>Fri, 03 Oct 2008 09:16:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41616&amp;title=rightclick-bug-in-syntaxedit#41616</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click bug in SyntaxEdit : This has been proposed as a solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41356&amp;title=rightclick-bug-in-syntaxedit#41356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1923">PPL1</a><br /><strong>Subject:</strong> 11875<br /><strong>Posted:</strong> 24 September 2008 at 10:26am<br /><br /><P>This has been proposed as a solution (for those using the MFC version):</P><DIV>-----------------------</DIV><DIV>In the MFC version it can be easily fixed by replacing: <BR><FONT face="Times New Roman" size=3>"CalcValidDispCol" with "CalcDispCol" in </FONT><BR><FONT face="Times New Roman" size=3>"CXTPSyntaxEditCtrl::OnRButtonDown" and compiling the Lib/Dll<BR>(or by overriding the message handler, copy the original source code</FONT> <BR><FONT face="Times New Roman" size=3>and make the replacement - then you don't need to compile the Lib/dll)</FONT> </DIV><DIV>&nbsp;</DIV><DIV>------------------------</DIV><DIV>&nbsp;</DIV><DIV>For the ActiveX, could monitoring the mousedown (or right-click)&nbsp;Windows message&nbsp;and cancelling it&nbsp;be used to trick the control?</DIV>]]>
   </description>
   <pubDate>Wed, 24 Sep 2008 10:26:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41356&amp;title=rightclick-bug-in-syntaxedit#41356</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click bug in SyntaxEdit : Bump...  One more week and still...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41281&amp;title=rightclick-bug-in-syntaxedit#41281</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1923">PPL1</a><br /><strong>Subject:</strong> 11875<br /><strong>Posted:</strong> 22 September 2008 at 12:48pm<br /><br />Bump...<DIV>&nbsp;</DIV><DIV>One more week and still no answer from CJ (neither here nor through support). I&nbsp;looks like SyntaxEdit is dead. </DIV><DIV>&nbsp;</DIV><DIV>As I need a VBScript editor, I may need to start looking at the competition (BCGSoft and free Scintilla are the ones&nbsp;that comes to mind...)</DIV>]]>
   </description>
   <pubDate>Mon, 22 Sep 2008 12:48:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41281&amp;title=rightclick-bug-in-syntaxedit#41281</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click bug in SyntaxEdit : Hi,  I&amp;#039;m glad I don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41019&amp;title=rightclick-bug-in-syntaxedit#41019</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11875<br /><strong>Posted:</strong> 15 September 2008 at 9:55am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I'm glad I don't use SyntaxEdit control...</DIV><DIV>&nbsp;</DIV><DIV>I think SyntaxEdit developers are on their holiday (for a few months...) It's really annoying when you have to wait for an answer that long. If I were you I would post one in the Commandbar forum, Oleg will wake some developers who are in charge of SyntaxEdit control <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Good luck</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 15 Sep 2008 09:55:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41019&amp;title=rightclick-bug-in-syntaxedit#41019</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click bug in SyntaxEdit : bump (again) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41018&amp;title=rightclick-bug-in-syntaxedit#41018</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1923">PPL1</a><br /><strong>Subject:</strong> 11875<br /><strong>Posted:</strong> 15 September 2008 at 9:16am<br /><br />bump (again)]]>
   </description>
   <pubDate>Mon, 15 Sep 2008 09:16:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=41018&amp;title=rightclick-bug-in-syntaxedit#41018</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click bug in SyntaxEdit : bump ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=40707&amp;title=rightclick-bug-in-syntaxedit#40707</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1923">PPL1</a><br /><strong>Subject:</strong> 11875<br /><strong>Posted:</strong> 04 September 2008 at 8:10am<br /><br />bump]]>
   </description>
   <pubDate>Thu, 04 Sep 2008 08:10:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=40707&amp;title=rightclick-bug-in-syntaxedit#40707</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click bug in SyntaxEdit :   Hi PPL1, we plan to use it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=40560&amp;title=rightclick-bug-in-syntaxedit#40560</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4339">peerschindel</a><br /><strong>Subject:</strong> 11875<br /><strong>Posted:</strong> 28 August 2008 at 12:18pm<br /><br />Hi PPL1,<div><br>we plan to use it in our software in the next version.<img src="https://forum.codejock.com/smileys/smiley4.gif" border="0"><br>We have always been thinking about programing syntax coloring on<br>our own, but it seemed too much work (would have taken several </div><div>months, I guess)<br>So we downloaded the demo and it looked very nice at the 1st moment<br>So we bought it and integrated it in our software<br>(took ca. 1 week).<br>Then I found all the small bugs (took me altogether 2 weeks to make<br>it work fine).<img src="https://forum.codejock.com/smileys/smiley19.gif" border="0"><br></div><div>Regarding the tab problem:<br>In the MFC version it can be easily fixed by replacing:</div><div>"CalcValidDispCol" with "CalcDispCol" in </div><div>"CXTPSyntaxEditCtrl::OnRButtonDown" and compiling the Lib/Dll<br>(or by overriding the message handler, copy the original source code</div><div>and make the replacement - then you don't need to compile the Lib/dll)</div><div><img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"></div><div>&nbsp;</div><div>Now a small request:<br>I bought version 12.0.1. Do you have a list of things that were<br>changed/fixed in 12.0.2 or were I can get it? Because I would like to </div><div>know what other problems, that I don't know until now, I have to expect.</div><div>Best regards</div><div><br><img src="https://forum.codejock.com/smileys/smiley17.gif" border="0"></div>]]>
   </description>
   <pubDate>Thu, 28 Aug 2008 12:18:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=40560&amp;title=rightclick-bug-in-syntaxedit#40560</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click bug in SyntaxEdit : This was done on Aug 12th, nearly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=40387&amp;title=rightclick-bug-in-syntaxedit#40387</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1923">PPL1</a><br /><strong>Subject:</strong> 11875<br /><strong>Posted:</strong> 25 August 2008 at 9:10pm<br /><br />This was done on Aug 12th, nearly 2 weeks ago. Assigned, but no reply <img src="https://forum.codejock.com/smileys/smiley19.gif" border="0"> <DIV>&nbsp;</DIV><DIV>I'm curious how many people are actually using SyntaxEdit in a production environment? And how they are handling context menus ?... </DIV><DIV>&nbsp;</DIV><DIV>(or are they simply saying to customers: "Folks, don't hit the Tab key to indent (and edit all your code files to remove them) otherwise, your copy/paste operations will corrupt your code" <img src="https://forum.codejock.com/smileys/smiley32.gif" border="0"><img src="https://forum.codejock.com/smileys/smiley32.gif" border="0">)</DIV>]]>
   </description>
   <pubDate>Mon, 25 Aug 2008 21:10:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11875&amp;PID=40387&amp;title=rightclick-bug-in-syntaxedit#40387</guid>
  </item> 
 </channel>
</rss>