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 

Collapsed text icon - How to ?

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



Joined: 05 May 2007
Posts: 7

PostPosted: Mon Oct 22, 2007 12:35 pm    Post subject: Collapsed text icon - How to ? Reply with quote

Hi,
I'm testing actively EControl Syntax Editor, and I would like to congratulate you for this great job.

I have a little question about Collapsed Text Icon. What format string to use?

I have defined rules for a simple basic language. For Subs/Functions I defined them as collapsible regions (folding enabled).
Folding is done correctly, but for Icon Text I do not get what I want.
What I want is to collapse the code of the procedure but keep all the line where it's declared as visible when user collapse the sub (like in Visual Studio .NET).

That means with

Code:

Sub  myProc(p1 as byte, p2 as byte)
  my sub code goes here
  my sub code goes here
  my sub code goes here
  my sub code goes here
End Sub


When folded actually it shows

Code:

Sub  [...]


What I want is

Code:

Sub  myProc(p1 as byte, p2 as byte)[...]


whatever the number of params is ...

I tried to put %SZ but it does not work (it shows the string %SZ).
I also tried %LZ but again does not work
Regards
octal
_________________
http://www.pocketmt.com
Back to top
View user's profile Send private message
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Mon Oct 22, 2007 6:41 pm    Post subject: Reply with quote

Hello,

Format string for this case will be:
Code:
%sz0 [...]

This format will show:
Code:
Sub  myProc(p1 as byte, p2 as byte)[...]


Michael.
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