[comp.sys.mac.hypercard] screen location of text in field?

neves@ai.cs.wisc.edu (David M. Neves) (01/25/90)

What is the best way of finding out where some text in a field appears
on the screen -- i.e. its screen rectangle?  The field text is word
wrapped  -- there are no return characters in it.

The only way I could figure out how to do it is to write a function that
starts at the beginning of the field and computes character positions
with word wrap figured in until it gets the the text in question.
Anyone done this?

-Thanks, david

p.s. Earlier I asked about good Hypertalk books.  As other people have
suggested, I went with Apple's HyperCard Script Language Guide.  I
wouldn't recommend it for beginners but it makes an excellent reference
book. 

p.s.s. A second question:
       How can one reference a selected object from the message box?  To
quickly edit the script of any object I would like to mouse it and then
type "edit" in the message box.

--
neves@ils.nwu.edu
Institute for the Learning Sciences, 1890 Maple, Evanston Il 60201