4 Replies Latest reply on Mar 22, 2007 9:50 AM by SPGAnne

    createTextField setting width based on string length

    SPGAnne Level 1
      I wonder if there is a way to easily calculate how wide to make a textfield that you create dynamically with createTextField based on the length of a string that is passed as an argument. In other words, if you know the font size you plan on using, is there a way to figure out how many pixels you need? Thanks in advance to anyone who can offer some assistance.