On Tue, 6 Feb 2007 10:27:20 +1100
"Neil Hodgson" <[EMAIL PROTECTED]> wrote:

> Matt Cheddar:
> 
> > I am thinking perhaps i should create a queue of the relevant
> > SC_MOD_INSERTTEXT/SC_MOD_DELETETEXT information and
> > process it in SCN_STYLENEEDED after styling has taken place.
> 
>    I'd probably delay it even further with a timer or idle handler
> that then processes the area of the file that has been changed after
> the styling has been performed.
>
> 
> > Or is it guaranteed there is a 1-1 relationship between
> > SC_MOD_INSERTTEXT/SC_MOD_DELETETEXT and
> > SCN_STYLENEEDED,
> 
>    No. One of the reasons for performing styling later is to coalesce
> modifications into fewer stylings.
> 
> Robert:
> 
> # Have you tried working with the CVS version of Scintilla?  Neil
> # relaxed some of the restrictions on updating in modify event handlers
> # *after* 1.72 was released
> 
>    It may be restricted again if there are problems.

Ah ok i will play it safe and avoid this method for the time being and instead 
try the queue as described above. Hopefully it won't be too fiddly!

Thanks,
Matt
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to