On Mon, Jan 26, 2004 at 08:29:58AM -0700, Steve Wampler wrote:
> 
> Does anyone have any code for figuring out the 'size' (x,y bounds)
> of a string before it is displayed in a component?

Ah, reading the "Graphics Programming in Icon", I've found
the WAttrib("ascent"), WAttrib("descent"), and WAttrib("leading")
calls.  That should be sufficent, along with TextWidth() to
do the above.

-Steve
--
Steve Wampler     [EMAIL PROTECTED]
The gods that smiled upon your birth are laughing now. -- fortune cookie


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to