Actually I did some experimenting and your totally right but it's not the messages of scintilla it's the subclassing itself. So I found a method of subclassing deviced by a Paul Caton for VB which actually generates asm code to handle the subclassing on the fly and that seems to have done the trick. Thanks for your continued help :)
Stewart
Neil Hodgson <[EMAIL PROTECTED]> wrote:
Stewart
Neil Hodgson <[EMAIL PROTECTED]> wrote:
Stewart Obert:
> 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?
It looks like the problem is with the specific way subclassing is
performed as it is not, in generally a slow technique. Perhaps there
is a lot of overhead in VB firing a method for each message. First
check to see if any of your code is being called during the styling
and if there is any reason for it to be slow. Is the subclass changing
the set of messages seen by Scintilla?
Neil
_______________________________________________
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
