text bow width

  • Thread starter Thread starter Mark Kubicki
  • Start date Start date
M

Mark Kubicki

since I know that a text field has a maximum allowable number of characters
(let's say: 15), is there an easy way I can determine how wide a box (text,
combo, list, etc) should be to accommodate all of the characters

(at the moment, I use trial and error -UGH!)

thanks in advance,
mark
 
The width will obviously depend on the font you're using.

Stephen Lebans has a couple of solutions for auto-sizing text boxes on forms
depending on their content. Take a look at http://www.lebans.com/toc.htm
 
since I know that a text field has a maximum allowable number of characters
(let's say: 15), is there an easy way I can determine how wide a box (text,
combo, list, etc) should be to accommodate all of the characters

Not only does this depend on the font - font size 3 Ariel and font size 24
Garamonde will obviously differ!! - but on the content. Most fonts use
variable pitch, so "lllllllllllllll" and "MMMMMMMMMMMMMMM" come out very
different in space used.

I'll be interested in hearing of general solutions - I use cut and try, and
generally make the box a bit bigger than the experiments would indicate.

John W. Vinson [MVP]
 

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

Back
Top