UIGadget enhancement request

Discuss OrbForms Designer and PocketC Architect

Postby design4use on Fri Jul 05, 2002 9:52 pm

I would like to see a draw.stringWidth(string), that returns the width in pixels based of a string passed, based on current font settings for the draw object
design4use
 
Posts: 128
Joined: Fri May 10, 2002 3:31 pm

Postby design4use on Fri Jul 05, 2002 9:55 pm

Apoligies, should have read the doc more thouroughly. draw.textWidth already exists, yeah!
While we are at it, draw.text could use wrapping functionality, e.g. by passing in an additional int parameter, something like maxWidth maybe, that would cause the text to wrap if the given maxWidth is exceeded.
design4use
 
Posts: 128
Joined: Fri May 10, 2002 3:31 pm


Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 2 guests

cron