MSFlexGrid - font metrics available for adjusting column widths?
Please do not multipost but rather crosspost to your selected NG's at
TextHeightWidth.zip is a replacement for the Report object's TextWidth
and TextHeight methods. It is multiline aware and can work in both
Report and Form views. Includes a sample report to show you how to
autosize individual controls with different formatting on the same line
to simulate RTF style text.
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
> There doesn't appear to be a MSFlexGrid property to automatically
> column width to fit the contents. It seems to take the column width
> values placed in the fixed row (ala MSFlexGrid.FormatString). There
> doesn't appear to be a property to enable an "auto resize" if the user
> double-clicks between column headings.
> Is there a slick way (or even an API call or three) to determine the
> displayed length of a string given the font name and size so that the
> width can be programmatically adjusted accordingly?