Recent

Author Topic: TSynEdit jumping to some line  (Read 3501 times)

BlueIcaro

  • Hero Member
  • *****
  • Posts: 832
    • Blog personal
TSynEdit jumping to some line
« on: January 07, 2010, 11:45:21 am »
Hello, I have Tsynedit on my program. And, for example, it has loaded a file with 100 lines. I want to jump the caret to some lines, for example line: 50, and saw the line at the top of the visible area of the tsynedit.

How can I do it?.

Thank in advance

/BlueIcaro

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
Re: TSynEdit jumping to some line
« Reply #1 on: January 07, 2010, 02:09:39 pm »
Should be quite obvious when using identifier completion, no?

Code: [Select]
  SynEdit1.TopLine:=50;
  SynEdit1.CaretY:=50;
  SynEdit1.CaretX:=1;
  SynEdit1.SetFocus;

 

TinyPortal © 2005-2018