Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get char width of text input ?

Status
Not open for further replies.

raznov

Programmer
Apr 8, 2002
110
US
How can I make a text box or would it be label component resize based on the char width of a text input box? I am passing the string entered into a textinput box to a label and then turning the visibility of the text input box off.

K
 
What do you mean by the char width of a text input box?
The number of characters entered?
 
I think what I should be asking is can i set a label that is also set to auto size, to max chars. The textinput is set to 20 maxchars.. but the label, which is passed the value of the text input needs to be a different size, smaller.

If I use a dynamic textfield, I can not get it to autosize(I saw some tech notes about putting the text field inside a mc and tried it both ways, won't work), but there is a maxchar property.

Basically, I am trying to simulate how you rename files in windows.

Thanks,
K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top