Folding with wxStyledTextCtrl Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
geralds
I live to help wx-kind
I live to help wx-kind
Posts: 186
Joined: Tue Nov 01, 2005 9:22 am

Folding with wxStyledTextCtrl

Post by geralds »

Has anyone implemented folding with wxStyledTextCtrl in C++? I'd love to see how it is implemented. Is it the lexer that assigns folding levels to lines, or is this something the application needs to do separately?

I'd really appreciate an example of how it's done. (I've read the wxPython instructions for STC folding, but I think they leave a lot of questions unanswered.)
benedicte
wxWorld Domination!
wxWorld Domination!
Posts: 1409
Joined: Wed Jan 19, 2005 3:44 pm
Location: Paris, France

Post by benedicte »

Maybe have a look at StEdit (text editor based on wxStyledTextControl).
It has folding on C/C++ language.

StEdit is available on wxCode (wxcode.sourceforge.net).
geralds
I live to help wx-kind
I live to help wx-kind
Posts: 186
Joined: Tue Nov 01, 2005 9:22 am

Post by geralds »

Will do. Many thanks!