MSFlexGrid - font metrics available for adjusting column width?

  • Thread starter Thread starter MyndPhlyp
  • Start date Start date
M

MyndPhlyp

There doesn't appear to be a MSFlexGrid property to automatically adjust a
column width to fit the contents. It seems to take the column width from the
values placed in the fixed row (ala MSFlexGrid.FormatString). There also
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 column
width can be programmatically adjusted accordingly?
 
Please do not multipost.
I answered your question in another NG.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
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
column

The people who answer questions here all have real jobs to go to, and most
of us check the groups do so once a day, and in our own time. Reposting a
question after three hours smacks a little of impatience and is unlikely to
gain many friends.

And what does the question have to do with tables or database design
anyway? Have you tried the forms programming groups, or one of the Windows
API lists...


Tim F
 
Tim Ferguson said:
Reposting a
question after three hours smacks a little of impatience and is unlikely to
gain many friends.

And what does the question have to do with tables or database design
anyway? Have you tried the forms programming groups, or one of the Windows
API lists...


Hence the reposting in a more appropriate NG. Would you rather I had replied
to my own post stating it was posted in error?
 
Back
Top