View previous topic :: View next topic |
Author |
Message |
sepa
Joined: 06 May 2007 Posts: 13
|
Posted: Sat Nov 03, 2007 2:55 pm Post subject: Some Gutter questions |
|
|
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 |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Mon Nov 05, 2007 12:53 pm Post subject: |
|
|
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 |
|
|
sepa
Joined: 06 May 2007 Posts: 13
|
Posted: Mon Nov 05, 2007 3:53 pm Post subject: |
|
|
Done.
Thank you. |
|
Back to top |
|
|
|