4 Replies Latest reply on Jul 25, 2008 12:39 AM by Newsgroup_User

    Resize text members

    mikem75 Level 1
      Hello - I am attempting to put text members on top of buttons at run time in a kiosk application I'm building. The concept is I call a database, grab a number of names and place them on buttons. The problem is the names are all of various lengths which makes some of the names too large for the buttons. I would like to test for the width of the text (given that different fonts have different kearning tables). Once I know the width of the text I can then adjust the character spacing or fontsize of the text to ensure it fits within the button.

      Does anyone know how to test for the width of text members. There is a .width property, but that doesn't seem to give me what I need. I've tested that and all the results are the same for members which are quite different in the number of characters and the width on the buttons.