[Lazarus] SynEdit

Damien Gerard milipili at shikami.org
Mon Mar 10 12:17:38 CET 2008


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
milipili at shikami.org

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









More information about the Lazarus mailing list