Wordwrap in
a StringGrid |
Wordwrap dans un StringGrid |
The
TStringGrid doesn't have a WordWrap property but it's possible to
simulate it and get a satisfactory result. All you have to do is set the DefaultDrawing property of the StringGrid to false and render the cell yourself using the OnDrawCell event as below. |
Le composant TStringGrid n'a pas de
propriété WordWrap mais il est possible de
l'implémenter de façon satisfaisante. Il suffit de mettre la propiété DefaultDrawing du StringGrid à false et de dessiner soi-même le contenu des cellules dans l'événement OnDrawCell. |
void __fastcall TForm1::StringGrid1DrawCell(TObject *Sender, int ACol, |