View Single Post
  (#13 (permalink)) Old
ecarmody Offline
Thumbs Must Hurt
 
Posts: 80
Join Date: Apr 2005
Location: Portland, OR., USA
Model: 8100
Carrier: Cingular
Default 11-02-2005, 12:57 PM

Thanks, fbrimm, that gives me some good ideas.

I was actually thinking of width in terms of pixels whereas your example is based on characters. That's good too, however, it appears to be easily modifiable in the FOR loop by building the text string and checking the getAdvance() while it is <= fixWidth in pixels; or even based on a percentage of screen.

Cheers,
Eric