Le Mar 10, 2008 à 11:46 AM, Vincent Snijders a écrit :

> Damien Gerard schreef:
>> 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.
>>
>> Screenshot : http://ftn.shikami.org/misc/Lazarus/synEdit.jpg
>
> The line number seem correct to me, only the last digit is not  
> visible. Try to
> enlarge the gutter. Maybe the autosizing of gutter doesn't work when  
> a new file is
> loaded.


Indeed you're right. The AutoSize was equals to True but it did not  
refresh as it should be.

   if OpenDialog1.Execute then begin
     mmCode.Gutter.AutoSize := False;
     mmCode.Lines.LoadFromFile(OpenDialog1.FileName);
     mmCode.Gutter.AutoSize := True;
   end;

this works well :)

Should I report this somewhere ?


--
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