Print Page | Close Window

Delay when applying changes on syntax color

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=13350
Printed Date: 26 June 2024 at 3:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Delay when applying changes on syntax color
Posted By: smoreno
Subject: Delay when applying changes on syntax color
Date Posted: 06 February 2009 at 8:23am
Product: Xtreme SyntaxEdit (ActiveX) version 12.1.1
Platform: Windows Vista (64bit) - SP 1
Language: C++

Hello, I have purchased the ActiveX SyntaxEdit and after insert it in my application I have found the following problem:

If I modify my custom schema in order to change the color of the text or another feature, there is a delay of about 20-30 seconds to update the changes in the editor.

What I do is modifying the schema then saving the modifications and going to my application to see the changes.

I have noted that in the demo application it works better and this delay is fewer (about 2 seconds).

I have found the function: Public Sub RefreshColors(). Remarks: Refreshing colors causes the syntax editor to re-read configuration files and re-parse the current document.

That is what I need but it seems to doesn't work.

Thank you in advance.



Replies:
Posted By: mdoubson
Date Posted: 27 February 2009 at 8:08pm
I think that this delay related to FileMonitor and Thread used to catch ini and scheme files modifications and notify app to update syntax and colors. It take time and difficult to predict run-time.
I make version without FileMonitor and direct call onupdate with hint = xtpEditHintInitView to reload config and immediatly see result. I think it will be faster. It will allow to stop app faster as we don't need to wait for thread.
I am not sure that Refresh colors in Activex version do all needed job. Will check later. But under new mode you don't need to use it.
I also see client's claim about long time to close app (Issue # 20738)


-------------
Mark Doubson, Ph.D.


Posted By: smoreno
Date Posted: 02 March 2009 at 3:08am
Thank you very much for your help. I will try.

Greetings!


Posted By: mdoubson
Date Posted: 18 March 2009 at 11:11pm
Get recent pre-release - it also have some serious fixes e.g. in Intellisense.

-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net