Lazarus

Using the Lazarus IDE => General => Topic started by: dav999 on September 29, 2008, 03:18:19 am

Title: 2 or 3 line in one cell in my stringgrid ?
Post by: dav999 on September 29, 2008, 03:18:19 am
Hello

i can't put 2 ou 3 lines in one cell to my stringgrid

i haven't find a "wordwrap" property, i would put in one cell a long text but i wan't colwidth superior at 90.

i have tested with this code :
Code: [Select]
grid_ent.Cells[0,1] := 'Footing à l''aise' + #13 + '(130 à 180 puls' + #13 + ' 80% de la FCM';

Mayby i use a wrong code ?
anyone can help me ?

Thanks
David

Excuse for my english :)
Title: RE: 2 or 3 line in one cell in my stringgrid ?
Post by: dav999 on September 30, 2008, 08:22:52 pm
i have find the solution :

in ondrawcell put this code :
Code: [Select]
TStringGrid(Sender).Canvas.TextStyle.SingleLine := false;
TStringGrid(Sender).Canvas.TextStyle.Wordbreak := true;


David
TinyPortal © 2005-2018