Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Syntax Edit
  New Posts New Posts RSS Feed - Delay when applying changes on syntax color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Delay when applying changes on syntax color

 Post Reply Post Reply
Author
Message
smoreno View Drop Down
Newbie
Newbie


Joined: 21 January 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote smoreno Quote  Post ReplyReply Direct Link To This Post Topic: Delay when applying changes on syntax color
    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.
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
smoreno View Drop Down
Newbie
Newbie


Joined: 21 January 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote smoreno Quote  Post ReplyReply Direct Link To This Post Posted: 02 March 2009 at 3:08am
Thank you very much for your help. I will try.

Greetings!
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2009 at 11:11pm
Get recent pre-release - it also have some serious fixes e.g. in Intellisense.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.