Ok I pegged it down. It was something to do with the subclassing but nothing persay to do with my code just to do with the subclassing itself.
Now what I did to correct this problem and I'd like the opinion of some of you guys on if it's an OK method to fix the problem is this.
I found the colourise function was fast if you cut out the subclassing and that corrected the problem with ctrl+end and what not. So what I did in the colourise function is first unhook the form that I was subclassing, then call the colourise then rehook the form. That seemed to speed up the process of colourising and it fixed the problem with Ctrl+end.
What I really need to know are there any hidden potential problems in this method? Thanks
Stewart
Stewart Obert <[EMAIL PROTECTED]> wrote:
Now what I did to correct this problem and I'd like the opinion of some of you guys on if it's an OK method to fix the problem is this.
I found the colourise function was fast if you cut out the subclassing and that corrected the problem with ctrl+end and what not. So what I did in the colourise function is first unhook the form that I was subclassing, then call the colourise then rehook the form. That seemed to speed up the process of colourising and it fixed the problem with Ctrl+end.
What I really need to know are there any hidden potential problems in this method? Thanks
Stewart
Stewart Obert <[EMAIL PROTECTED]> wrote:
Ok I took your suggestions and experimented. After some experimenting I figured out it's not the styling persay but the folding. If folding is disabled it runs just fine but if folding is enabled it's sluggish. I noticed however that Scite runs just fine either way. As does the DelphiSCI component. I thought perhaps it was my controls handling of messages from scintilla but even after commenting them all out same thing. I'm a bit of a loss here. Thanks for any help
Stewart
Neil Hodgson <[EMAIL PROTECTED]> wrote:Stewart Obert:
> I've noticed when dealing with a long file if I use Ctrl+End if it's
> highlighted it has a bit of a lag time. If I use SCI_COLOURISE after
> setting the highlighter properties there! is no lag time with Ct! rl+End but
> there is a bit of a lag time there.
Syntax styling does take some time.
> I've noticed none of the editors using Scintilla seem to suffer from this
> problem but I'm not entirely sure why. As near as I can tell I'm using an
> almost identical loading method to them. So I guess my question is what
> might cause this delay that I may be doing wrong so I can correct it.
Try turning line wrapping on/off and experiment with layout caching property.
Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest
Yahoo! Photos Showcase holiday pictures in hardcover
Photo Books. You design it and well bind it!_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
_______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
