🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #31198

Re: Help with fields and scripts in Hypercard

#31198
From: Ken Warner
Date: Mon, 15 Aug 1988 22:50
21 lines
1215 bytes
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
Technical Details
Message-ID: <816@scubed.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!husc6!mailrus!ames!scubed!warner
References: <252@aeras.UUCP> <214@rna.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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