Dave Cragg wrote:
> The selectedLoc returns the position from the left and top of the
> card.
Aha! A light goes on and someone is home to read by it. That makes sense now.
> Here is a script of how you might do this. It puts the text in
> question at the top of the field.
>
> put 8 into tMagicNumber -- see below
> select line lineOffset(someString, field someField) of field someField
> put the top of field someField into tTop
> put the scroll of field someField into tScroll
> put item 2 of the selectedLoc into tY
> put tY - tTop + tScroll into tNewScroll
> set the scroll of field someField to tNewScroll - tMagicNumber
>
> tMagicNumber is to tidy it up. Without it, I find the text will be
> slightly above the top of the field. This may be related to the field
> margins, but I'm not sure. 8 seems to work (on Windows anyway).
Thanks for the sample script. I think the 8 you're plugging into
tMagicNumber has to to with the margin of the field: 8 is standard. OK,
this makes much more sense now. Thanks!!!!!!!
> As Scott mentioned, the new "formatted" properties in 2.3 look much
> esier to use for this kind of thing.
You're right. I e-mailed Scott privately about switching to 2.3. I'm in
the middle of a big project: over 150 stacks. We've been working on this
thing for over a year and are due to ship Q1 2000. Consequently, I'm not
really excited about switching versions right in the middle of it.
Thanks, again, for all your help!
Mary Bull
[EMAIL PROTECTED]