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
