Styles and masks

47 views
Skip to first unread message

Jerry Evans

unread,
Apr 23, 2012, 12:19:30 PM4/23/12
to scintilla...@googlegroups.com
I'm not sure I understand SCI_STARTSTYLING and SCI_SETSTYLING. Lets say
I want to apply style aStyle to 10 characters starting at position pos:

SendMessage(hWnd,,SCI_STARTSTYLING,pos,mask);
SendMessage(hWnd,SCI_SETSYLING,10,aStyle);

What is the role of mask here? Does it dictate which parts of the style
are applied? If I set mask to 0xFF, then my (Windows) Scintilla control
displays the 10 characters from position with a green squiggly
underline. Slightly counter-intuitive.

Many thanks.

Jerry.


Philippe Lhoste

unread,
Apr 23, 2012, 6:08:54 PM4/23/12
to scintilla...@googlegroups.com

http://www.scintilla.org/ScintillaDoc.html#SCI_STARTSTYLING
Role of mask is explained there.

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- http://PhiLho.deviantART.com
-- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply all
Reply to author
Forward
0 new messages