Recent

Author Topic: [SOLVED] TATSynEdit - Draw Line  (Read 1603 times)

mosquito

  • Full Member
  • ***
  • Posts: 138
[SOLVED] TATSynEdit - Draw Line
« on: January 28, 2022, 06:53:31 pm »
How I could with TATSynEdit draw a horizontal line?
A line without any purpose of folding. Like a separator.
Thx.
« Last Edit: January 28, 2022, 11:18:12 pm by mosquito »

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: TATSynEdit - Draw Line
« Reply #1 on: January 28, 2022, 07:09:36 pm »
Use property Strings.LinesSeparator[].

Code: Pascal  [Select][+][-]
  1. uses atstrings;
  2.  
  3. procedure TForm1.FormCreate(Sender: TObject);
  4. begin
  5.   atsynedit1.LoadFromFile('/home/user/new.css');
  6.   atsynedit1.Strings.LinesSeparator[2]:= cLineSepBottom;
  7.   ATSynEdit1.Update;
  8.  

mosquito

  • Full Member
  • ***
  • Posts: 138
Re: TATSynEdit - Draw Line
« Reply #2 on: January 28, 2022, 11:15:18 pm »
Perfect, easy, thx !!

 

TinyPortal © 2005-2018