![]() |
Right-click bug in SyntaxEdit |
Post Reply ![]() |
Author | |
PPL1 ![]() Groupie ![]() Joined: 10 April 2006 Location: Canada Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() Posted: 18 August 2008 at 3:46pm |
SyntaxEdit seems to have a problem with right-click and tabs.
If the line contains a tab character, the right-click does not move the focus to the correct position. Tabs seem to count as 1 chr.
1-Take the Syntax Edit sample. Add 2 lines: Function
[tab]Function 2- Right-click at the end of the first line. Focus goes to the end as expected 3- Right-click at the end of the Second line. Focus goes to the ''t'' of Function. With this bug, context menus become useless for copy/paste |
|
![]() |
|
PPL1 ![]() Groupie ![]() Joined: 10 April 2006 Location: Canada Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
This is a major problem and not fixed in the latest 12.0.2!!! How can one provide such basic feature as context menu with this major bug !!!
Even your sample app has this bug:
Is anyone using the SyntaxEditor ???
|
|
![]() |
|
ijwelch ![]() Senior Member ![]() Joined: 20 June 2006 Status: Offline Points: 262 |
![]() ![]() ![]() ![]() ![]() |
Think need to email to support to have chance to get fixed. Not everything in forum is dealt with it seems.
|
|
![]() |
|
PPL1 ![]() Groupie ![]() Joined: 10 April 2006 Location: Canada Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
This was done on Aug 12th, nearly 2 weeks ago. Assigned, but no reply
![]() I'm curious how many people are actually using SyntaxEdit in a production environment? And how they are handling context menus ?...
(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"
![]() ![]() |
|
![]() |
|
peerschindel ![]() Groupie ![]() Joined: 12 July 2008 Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() |
Hi PPL1,
we plan to use it in our software in the next version. ![]() We have always been thinking about programing syntax coloring on our own, but it seemed too much work (would have taken several months, I guess) So we downloaded the demo and it looked very nice at the 1st moment So we bought it and integrated it in our software (took ca. 1 week). Then I found all the small bugs (took me altogether 2 weeks to make it work fine). ![]() Regarding the tab problem:
In the MFC version it can be easily fixed by replacing: "CalcValidDispCol" with "CalcDispCol" in
"CXTPSyntaxEditCtrl::OnRButtonDown" and compiling the Lib/Dll
(or by overriding the message handler, copy the original source code and make the replacement - then you don't need to compile the Lib/dll)
![]() Now a small request:
I bought version 12.0.1. Do you have a list of things that were changed/fixed in 12.0.2 or were I can get it? Because I would like to know what other problems, that I don't know until now, I have to expect.
Best regards
![]() |
|
![]() |
|
PPL1 ![]() Groupie ![]() Joined: 10 April 2006 Location: Canada Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
bump
|
|
![]() |
|
PPL1 ![]() Groupie ![]() Joined: 10 April 2006 Location: Canada Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
bump (again)
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I'm glad I don't use SyntaxEdit control...
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
![]() Good luck
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
PPL1 ![]() Groupie ![]() Joined: 10 April 2006 Location: Canada Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
Bump...
One more week and still no answer from CJ (neither here nor through support). I looks like SyntaxEdit is dead.
As I need a VBScript editor, I may need to start looking at the competition (BCGSoft and free Scintilla are the ones that comes to mind...)
|
|
![]() |
|
PPL1 ![]() Groupie ![]() Joined: 10 April 2006 Location: Canada Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
This has been proposed as a solution (for those using the MFC version): -----------------------
In the MFC version it can be easily fixed by replacing:
"CalcValidDispCol" with "CalcDispCol" in "CXTPSyntaxEditCtrl::OnRButtonDown" and compiling the Lib/Dll (or by overriding the message handler, copy the original source code and make the replacement - then you don't need to compile the Lib/dll) ------------------------
For the ActiveX, could monitoring the mousedown (or right-click) Windows message and cancelling it be used to trick the control?
|
|
![]() |
|
PPL1 ![]() Groupie ![]() Joined: 10 April 2006 Location: Canada Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
Bump again... 6 weeks and no reply from CJ (here or in customer support).
A simple acknowledgement would be nice...
|
|
![]() |
|
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1355 |
![]() ![]() ![]() ![]() ![]() |
Hi PPL1...
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... Try this code on a form with a SyntaxEdit (SyntaxEdit1) control:
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Thanks, Pierre, fixed for 12.1 release. Sorry for such delay.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |