String width

Jerry Daniels jerry at danielsfamily.org
Wed Dec 5 16:01:01 EST 2001


Thx, Geoff.

-----Original Message-----
From: use-revolution-admin at lists.runrev.com
[mailto:use-revolution-admin at lists.runrev.com] On Behalf Of Geoff Canyon
Sent: Wednesday, December 05, 2001 1:01 PM
To: use-revolution at lists.runrev.com
Subject: Re: String width


At 10:53 AM -0600 12/5/01, Jerry Daniels wrote:
>Does anyone know how to determine the width of a string (given it's 
>font, style and size) within an executable that is running on either a 
>Windows, Linux or Mac?
>
>I know there were plenty of XFCNs on the Mac to do this, but is there 
>anything on the Windows or Linux for this?

As is so often the case with Revolution, no external is required -- the
functionality is already there. Check out the formattedWidth function.

I love saying "It's built-in" :-)

regards,

Geoff

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list