>
> >I want to determine the precise width in pixel of a string.
> >In my Grid class, I want to optimize the space of the columns
> >without cutting the header's caption
> You can calculate precize pixel length using FONTMETRIC(), but just for
> proportional font.
Don't forget that some people still use Large fonts (one of our
customers does, and this screws up all of my form layouts), and that the
thumbwheel control on the right will be four pixels wider than if using
Small fonts.
IOW, also use SYSMETRIC() to get the actual useable space inside the
grid.
--
--
Paul Russell
Software Kinetics Ltd. | Phone: (902) 481-4582 Fax: (902) 468-3679
201 Brownlow Avenue | Office: Paul.Russell@SofKin.ca
Dartmouth | "The best evidence that time travel will never
be
Nova Scotia, Canada | possible is that we have not been invaded by
B3B 1W2 | hordes of tourists from the future." - S.
Hawking
"Use technology because it's appropriate -- except in the case of 'Java'
then just use it 'cause it's cool!" - Paul Russell