Another thing (about TStringGrids).. I'm attempting to automatically size
the individual columns (at run-time) of the grid.
I do this by creating a string which is identical (of fixed width) to one
that will be displayed once the grid has been created. I then use the
GetTextExtent() call to figure out the width in pixels, and then tell TSG
that column such and such should be of this width, it works for all columns
with one exception:
XS:=FormatDateTime('ddddd @ t', Now);
The column that displays the above string is too large (by quite a lot -
IMHO). I can't figure out why. The width of the column to the right of the
one holding the above data is set by doing:
XS:='999';
And then doing the GetTextExtent() call.. and it is *precisely* that wide.
???
%JoHo%
joho@defsol.se
---
---------------
* Origin: Definite Solutions ~/Stockholm, Sweden (2:201/330.3)
|