[Lazarus] SynEdit - Why a new line added at the end of the text?

Gabor Boros mlnglsts at bgss.hu
Mon Jul 22 20:18:51 CEST 2019


Hi All,


procedure TForm1.Button1Click(Sender: TObject);
var
   SE:TSynEdit;

begin
   SE:=TSynEdit.Create(Self);
   SE.Text:='abc';
   ShowMessage('*'+SE.Text+'*');


For me the above code show the next message:

*abc
*

Any idea why a new line added? With TMemo the result: *abc*

I use fixes_2_0 with FPC fixes_3_2 on Windows 64bit.

Gabor


More information about the lazarus mailing list