[comp.sys.mac.hypercard] Word location

aviram@bimacs.BITNET (Aviram dilian) (02/21/89)

I use a field on card and it includes text.

How can I compute the location (in pixel) of any word which in that field ??
In HyperCard there are commands like "word 3 of field 1" or "word 3 of
line 1 of field 1".
But how can I get the location in pixel of that "word 3" ??
Before that word they can be all kinds of characters that every kind has
it own width, even the font is declared, becuase the declaration gives you
the maximum width and hieght of character.

Aviram Dilian.

e-mail:aviram@bimacs.bitnet

aviram@bimacs.BITNET (Aviram dilian) (03/01/89)

Hello Friends !!

I have a good challenge for everybody who use HyperCard and wants to
enjoy it !!

I have a field in card (in HyperCard) and it includes text.
How can I compute the location (in Pixels) of word which in field ??
                                =========
HyperCard has commands for example "... word i of field 1 .."
or " .. word i of line 1 of field 1 ..."

How can I get the location in pixel of that "word i" relative to its card ??
Before that word they can be other word which contains all kinds of
characters that every character has its own width, even the font is
declared. Between words there are several ' 's, how can get every word's
location in pixel efficiant as possible ??

Does somebody have an answer for my good challenge ??

Please send your answer immidietly to my e-mail: aviram@bimacs.bitnet

Aviram Dilian