Thanks Mark

That's exactly what the problem seems to be. what I've done is revised my
code so every line in the text member has the same number of cells per row
in the table. In my case there are 5 cells per row now.

so the following code seems to work quite nicely now. at least after 10
minutes of testing, I suppose we'll see! It even seems to handle rows being
different heights.

  pointClicked=the MouseLoc
  currentMember=sprite(spriteNum).member
  lineNum=sprite(spriteNum).pointToLine(pointClicked)
  newV_Loc=member("txtList").linePosToLocV(max((lineNum-2)*5,0))

I need to have the Max function in there to handle the case where the user
clicks on either of the first two rows of the table. the first of which is
empty and the second contains headings.

thanks again
regards
Ian



>Hi Ian
>
>My memory is a little foggy on this one, but I ran into something similar a
>few months back when I was trying to display information from a sequel
>database in an HTML text member.  If memory serves me right, you will find
>that the first line is a real line (the empty space that the table puts into
>the member at the start of a table). Then for each cell of the table, it
>should generate approximately 1 line per cell therefore if you have an html
>member then line 1 is the first line or empty space, line 2 is row 1, cell1,
>line 3 is row1 cell 2 and so forth repeating with each row in the table.
>Just screwy enough to drive a person to drinking when you try to figure it
>all out and even then there is no guarantee that it will hold true. Once you
>get out of the table, the line number seems to work again.  Now one other
>thing to consider, is that if you choose a spot that is close to the end of
>the text of the line (or just after it) then it will go to the next line.
>Similar to the way a return at the end of a text line is really the first
>character of the next line and so forth.  I wish you good luck on figuring
>that thing out... I wasted a lot of time trying to nail it down.. I just
>can't remember if I ever got it working reliably or just finally abandoned
>it.. the project eventually got abandoned anyhow.
>Sincerely
>
>Mark R. Jonkman
>
>
>[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!]


--
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