Zitat von Damien Gerard <[EMAIL PROTECTED]>: > > 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.
They are not wrong. You just don't see the last number. The 'gutter' must be enlarged. Did you set SynEdit1.Gutter.AutoSize to true? > 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 ! Mattias _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
