From: John L. <jla...@gm...> - 2012-11-15 21:13:00
|
On Thu, Nov 15, 2012 at 3:56 PM, Paul K <pau...@ya...> wrote: > Hi John, > > I've been doing custom styling and realized that the work that I've > done is mostly in UPDATEUI handlers, whereas it should probably be in > STYLENEEDED handlers. I looked at your editor and see that you also > only use UPDATEUI, but not STYLENEEDED. The Scintilla docs are pretty complete and map reasonably well to the wxWidgets wrapper. http://www.scintilla.org/ScintillaDoc.html "If you choose to use the container to do the styling you can use the SCI_SETLEXER command to select SCLEX_CONTAINER, in which case the container is sent a SCN_STYLENEEDED notification each time text needs styling for display." I think the idea is that you will have to style everything all the time. Though, I don't remember having tried it myself. Regards, John |