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 

Some Gutter questions

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



Joined: 06 May 2007
Posts: 13

PostPosted: Sat Nov 03, 2007 2:55 pm    Post subject: Some Gutter questions Reply with quote

1. There is Gutter.AutoSize property. But it have no effect on how much lines loaded to component. Ok, i wrote additional procedure:
Code:

procedure TfmMain.GutterAutosize(F: TEditorFrame);
var
  b: TBitmap;
  i,j: integer;
begin
  i:=length(inttostr(F.EditorMaster.Lines.Count));
  b:=TBitmap.Create;
  b.Canvas.Font:=F.EditorMaster.LineNumbers.Font;
  j:=b.Canvas.TextWidth('8');
  b.Free;
  F.EditorMaster.Gutter.Bands[0].Width:=i*j;
  F.EditorSlave.Gutter.Bands[0].Width:=i*j;
end;

And exec it when load file. But how can i get line add/del event beatufull? onKeyDown listen to ALL Return/Del/BkSpc ? How about mouse? (In SynEdit this autosize is implemented in component)

2. Sorry, i can't find option to select string completely when click on gutter. And select lines, when click and move mouse on gutter. I think its base function. It's need to implement myself?

3. Will be Gutter.Cursor property implemented in future? (As in SynEdit)

4. (Again from SynEdit) Is it planned to implement user linebreak icon on gutter, when wrap occur?


Thank you.
Back to top
View user's profile Send private message Visit poster's website
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Mon Nov 05, 2007 12:53 pm    Post subject: Reply with quote

Hello,

Please, add these suggestions to Mantis.
In Mantis you will be able to trace their implementation.

You suggestions are good and I think they will be implemented in nearest update.

Michael.
Back to top
View user's profile Send private message Send e-mail
sepa



Joined: 06 May 2007
Posts: 13

PostPosted: Mon Nov 05, 2007 3:53 pm    Post subject: Reply with quote

Done.
Thank you.
Back to top
View user's profile Send private message Visit poster's website
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