Xref: utzoo comp.sys.mac:19318 comp.sys.mac.hypercard:974 Path: utzoo!utgpu!attcan!uunet!husc6!mailrus!ames!scubed!warner From: warner@scubed.UUCP (Ken Warner) Newsgroups: comp.sys.mac,comp.sys.mac.hypercard Subject: Re: Help with fields and scripts in Hypercard Summary: How do I find the extent rectangle of painted text? Keywords: paint text Message-ID: <816@scubed.UUCP> Date: 15 Aug 88 22:50:50 GMT References: <252@aeras.UUCP> <214@rna.UUCP> Reply-To: warner@scubed.UUCP (Ken Warner) Followup-To: comp.sys.mac.hypercard Organization: S-Cubed Lines: 21 I want to draw a rectangle around some painted text. Using the paint tools I can paint the text and draw a rectangle. I would like to be able to code the message handler in such a way as to be able to change the textFont and still know how big the extent rectangle is. What I mean by extent rectangle is the rectangle that will just enclose the painted text. How do I find the extent rectangle of some painted text? For example: on mouseUp choose text tool click at 50,50 type "1234567890" doMenu select ? How do I get the rectangle of the selection ? so I can draw a rectangle around the painted text? ? end mouseUp Is such an incantation possible? Ken Warner