Hi !

I have a strange behavior when using TSynEdit. Espacially when loading  
a Lua Script from a file (other I don't know).
All lines numbers are wrong.
If I manually type into the SynEdit it works well. When I load my  
file, it is like the attached screenshot.
I guess I do something wrong.

Here is my code :
procedure TImporterFrm.btnOpenClick(Sender: TObject);
begin
  if OpenDialog1.Execute then begin
    mmCode.Lines.LoadFromFile(OpenDialog1.FileName);
  end;
end;

What'is the "good" way to do it ?
Thanks !


Screenshot : http://ftn.shikami.org/misc/Lazarus/synEdit.jpg


--
Damien Gerard
[EMAIL PROTECTED]

"Intelligence is 10 million rules."
    -- Douglas Lenat





_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to