Word Wrap StringGrid

Posted by James Krawczyk

Hi All

I'm trying to create an application that does file hashing when you drag and drop the files onto it. To keep the design looking clean and since it has multiple hashes it returns I'm using a StringGrid to display the results. However the hash for SHA-512 and Whirlpool are (obviously) 512bit hashes and the resulting string is too long to fit into a StringGrid cell.

Is there any way to make the cell accept something past the limit (I've already tried increase that collum size to it's max). Or is there a simple way to make the StringGrid Word Wrap the hash results?

The code the puts the result into the grid is

if Form1.CheckWhirl.Checked = True then
Form1.StringGrid1.Cells[1,cell] := (SHAWhirlFileGen(hashfile,11));
Form1.Stringgrid1.Cells[0,cell] := 'Whirpool Hash:';


Follow Ups