MSFlexGrid - font metrics available for adjusting column width?

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?
 
S

Stephen Lebans

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.
 
T

Tim Ferguson

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
 
M

MyndPhlyp

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top