Have you looked at the code in the demo? I am using it and have no problems
with multiple levels.
···
-----Original Message-----
From: Hassan Aurag [mailto:aurag@cae.com]
Sent: Wednesday, September 26, 2001 11:57 AM
To: WxPython List
Subject: [wxPython] FoldLevels in StyledText
Hi,
I finally could get fold levels to work but only at one level. Now
looking at stc_.py, I only see
wxSTC_FOLDLEVELBASE = stc_c.wxSTC_FOLDLEVELBASE
wxSTC_FOLDLEVELWHITEFLAG = stc_c.wxSTC_FOLDLEVELWHITEFLAG
wxSTC_FOLDLEVELHEADERFLAG = stc_c.wxSTC_FOLDLEVELHEADERFLAG
wxSTC_FOLDLEVELNUMBERMASK = stc_c.wxSTC_FOLDLEVELNUMBERMASK
4 types. For now, I am using wxSTC_FOLDLEVELHEADERFLAG and
wxSTC_FOLDLEVELBASE, but was wondering how one could get nested levels.
An example of this is:
if () then
if () then
...
endif
...
endif
Now I would like to be able to fold the second if as well as the first.
Thanks in advance
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users