You could use a DrawGrid instead and the win32 api call DrawText.

>From win32.hlp:

"The DrawText function draws formatted text in the specified rectangle. It
formats the text according to the specified method (expanding tabs,
justifying characters, breaking lines, and so forth). "

Wilfred.

-----Original Message-----
From: gajo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 17 August 1999 15:00
To: Multiple recipients of list delphi
Subject: [DUG]: Wordwraping in TStringGrid


Hi there!

I have a StringGrid with about 150 cells. The editing and all work fine, but
how can I make the text wrap when it reaches the cell border? I
could replace those 150 cells with TMemos, but that would take too much time
and space. I have also checked the DSP page and couldn't find a
component that can do this.
So, is there a way to wrap text inside the TStringGrid's cells?

Gajo Csaba

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to