Hi

I have a text member displaying tabular information. i'm using the html
property to create the formatting needed. The plan is to allow the user to
click on part of the table and then position an appropriately sized text
box over the piece of table data to allow the user to enter data.
Everything works great with the exception of vertically positioning the
text box.

The problem is that linePosToLocV() doesn't seem to produce a predictable
result, this is documented in the read me for version 8 (which, naturally,
i only  read after a couple of hours of fighting with this). I have the
line number that the user clicked on, so my next thought was to use
LocVTolinePos() and start at 1 and iterate through the pixels until I
reached the current line number. However it seems like this doesn't work
very well either. for some reason between pixel 26 and 27 it jumps from
line 2 to line 7.

it seems as though the line height is variable for the text member I am
using, otherwise I would simply multiply the row height by the row number.
Specifying a fractional row height seems to get it pretty close, but pretty
close is not what I'm after.

Are there any other obvious things I'm overlooking? Could there be anything
in the html that might cause this problem. I'm generating the html so
that's under my control if revisions are required there.

thanks in advance
Ian

--
Ian Jempson
Senior Developer
Media-X Systems Inc.
(613) 722-9990 ext. 17
http://www.media-x.com



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to