EControl Ltd. Forum Index EControl Ltd.
VCL libraries and software support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I turn off code folding?

 
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor
View previous topic :: View next topic  
Author Message
jfcarbel



Joined: 13 Jun 2006
Posts: 27

PostPosted: Thu Jun 15, 2006 6:00 am    Post subject: How do I turn off code folding? Reply with quote

I have set the style of the file I want to load. But I do not need code folding. Is there a way to turn this off programatically?
Back to top
View user's profile Send private message
jfcarbel



Joined: 13 Jun 2006
Posts: 27

PostPosted: Thu Jun 15, 2006 6:01 am    Post subject: Reply with quote

Posted by: econtrol (IP Logged)
Date: May 31, 2006 11:43AM

There is a way to do it:
You should disable all range rules.

example:

with SyntaxMemo1.SyntObj.Owner do
for i := 0 to BlockRules.Count - 1 do
BlockRules[i].Enabled := False;

That is code folding is controled by the lexer.

I shall implement option to turn off folding in nearest update.

Michael.
Back to top
View user's profile Send private message
jfcarbel



Joined: 13 Jun 2006
Posts: 27

PostPosted: Thu Jun 15, 2006 6:02 am    Post subject: Reply with quote

I tried the code you suggested, however I then lose all my color syntax highlighting. I hope that the future implemented setting only turns off code folding and nothing else.

Thanks.
Back to top
View user's profile Send private message
jfcarbel



Joined: 13 Jun 2006
Posts: 27

PostPosted: Thu Jun 15, 2006 6:02 am    Post subject: Reply with quote

Posted by: econtrol (IP Logged)
Date: June 09, 2006 01:23PM

I've already implemented DisableFolding property. This property allows to turn ON/OFF folding with saving collapsed ranges, that after turn on there will be the same collapsed lines as before turn off.
Back to top
View user's profile Send private message
jfcarbel



Joined: 13 Jun 2006
Posts: 27

PostPosted: Thu Jun 15, 2006 6:03 am    Post subject: Reply with quote

Thanks, is this available in the latest demo version online?
Back to top
View user's profile Send private message
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Fri Jun 16, 2006 10:09 am    Post subject: Reply with quote

Next week I shall publish new update.

Today I've uploaded demo applications (in download section), so you may test this feature.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group