I still have trouble with this, but the best solution is to use textwidth. Problem is, if you create the objects, then immediately try to size them according to the size of the text, you won't get the correct answer. You need to do a Wait (about 0.01 seconds is fine) and then resize the boxes. Problem with that is, it creates flicker, so maybe do it offscreen and then put them onscreen when it's finished.