Forum > SynEdit
Gutter Width
(1/1)
BubikolRamios:
If I type foo, and execute this, on top of that, it overlaps fine, no change visible
Any logic in +2 ?
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- with synedit1() do begin //canvas does not have same font as synedit itself //so make it same Canvas.Font := Font; Canvas.Brush.Color := clNone; Canvas.TextOut (Gutter.Width+2,0, 'foo'); end;
Martin_fr:
Probably
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---const GutterTextDist = 2; //Pixel...procedure TCustomSynEdit.RecalcCharsAndLinesInWin(CheckCaret: Boolean);... if FLeftGutter.Visible then FPaintArea.Padding[bsLeft] := GutterTextDist else FPaintArea.Padding[bsLeft] := 1;
For all else: By painting yourself on the canvas, I guess you invite a lot of pain and trouble...
Whatever you try to do.
Navigation
[0] Message Index