[wxPython-users] custom folding with stc.StyledTextCtrl

Robin Dunn robin at alldunn.com
Mon Feb 25 10:44:37 PST 2008


Randall Smith wrote:
> I'd like to implement some very simple folding for a stc.StyledTextCtrl. 
>  I assume the folding is based on the lexer and I'm using the 
> STC_LEX_SQL lexer, which I doubt has any folding defined, but I don't 
> know where to look.

Looks like it does have some foldling abilities built-in to the lexer. 
You can see the lexer implementation here: 
http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_2_8_BRANCH/contrib/src/stc/scintilla/src/LexSQL.cxx?revision=44296&view=markup


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list