The MASM Forum

General => The Laboratory => Topic started by: gfalen on October 15, 2014, 09:04:36 AM

Title: Need help with SciLexer.dll 3.51
Post by: gfalen on October 15, 2014, 09:04:36 AM
I set lexer to SCLEX_CONTAINER but I get no SCN_STYLENEEDED notifications!!
Title: Re: Need help with SciLexer.dll 3.51
Post by: dedndave on October 15, 2014, 04:06:15 PM
i have no experience with scilexer, but.....

http://www.scintilla.org/ScintillaDownload.html (http://www.scintilla.org/ScintillaDownload.html)

there is a windows executable d/l - perhaps you can get some example code ?
Title: Re: Need help with SciLexer.dll 3.51
Post by: gfalen on October 15, 2014, 04:36:47 PM
Yes, that's where I got it from.

All the examples say if I set the lexer to SCLEX_CONTAINER, it will send SCN_STYLENEEDED notifications.
But I am not seeing them.

It works fine when I use SCLEX_CPP.
Title: Re: Need help with SciLexer.dll 3.51
Post by: dedndave on October 15, 2014, 06:03:30 PM
hard to figure it out without reading the entire spec - lol

but, it might be sending SCI_GETENDSTYLED messages
then, one of the parms (lParam or wParam) holds the SCN_STYLENEEDED notification code

that's similar to how other windows notifications are received
(notice: different terminology for message and notification)

http://pyqt.sourceforge.net/Docs/QScintilla2/classQsciScintillaBase.html (http://pyqt.sourceforge.net/Docs/QScintilla2/classQsciScintillaBase.html)
Title: Re: Need help with SciLexer.dll 3.51
Post by: dedndave on October 15, 2014, 08:10:35 PM
they might also come as WM_NOTIFY or WM_COMMAND messages   :P