You can wrap text yourself in a TStringGrid. I did this once in a project.

The way it was implemented was to have a TMemo the same width as the column
I want to put my text into, place the text in the Text property then read
off the Lines[0] and Lines[1] to get the two lines if it has wrapped around,
and put these yourself into two consecutive lines on the StringGrid. If the
user clicks on one line you change the highlight so that both lines are
selected instead.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mike Osborne
> Sent: Saturday, 25 August 2001 13:49
> To: Multiple recipients of list delphi
> Subject: [DUG]: Wrap text
>
>
> I have a text field that could have entries with more text than I
> can fit in
> the column width I have available.
>
> Is there a way of wrapping text in a DB Grid?
>
> If not, can it be done in a String/Draw Grid?
>
> Or perhaps there is a 3rd-party grid that can do this???
>
> Or any other relevant suggestions?
>
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to