problem with display of large text in a TStringGrid in Borland C++ Builder 5.0
Posted on 2009-05-01
I am using Borland C++ builder 5.0 and am using a 2 column TStringGrid to display some text .It works fine when there is not much text in each cell of the TStringGrid. I have a problem when text is more than 500 or 1000 characters (multiple lines of text) and it has to be displayed in one cell. The full text is not shown. I tried setting DefaultDrawing to false and writing my own DrawCell callback function. I set the DT_WORDBREAK formatting option to the Windows API DrawText(...) in the DrawCell() event handler function. But even this is not showing the full text but only the first few lines of text.How do I solve the problem?
Thanks and Warm Regards