Recent

Author Topic: 2 or 3 line in one cell in my stringgrid ?  (Read 7862 times)

dav999

  • New Member
  • *
  • Posts: 16
2 or 3 line in one cell in my stringgrid ?
« 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 :)
Ubuntu 8.04 - Lazarus 0.9.26 - FPC 2.2.2

dav999

  • New Member
  • *
  • Posts: 16
RE: 2 or 3 line in one cell in my stringgrid ?
« Reply #1 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
Ubuntu 8.04 - Lazarus 0.9.26 - FPC 2.2.2

 

TinyPortal © 2005-2018