Path: utzoo!attcan!uunet!cs.utexas.edu!usc!brutus.cs.uiuc.edu!psuvax1!psuvm!cunyvm!byuvax!taylorj From: taylorj@yvax.byu.edu Newsgroups: comp.sys.mac.hypercard Subject: Re: Selecting text (or "ClickLine version 5.1") Message-ID: <888taylorj@yvax.byu.edu> Date: 4 Nov 89 07:02:37 GMT Lines: 25 Nick Capon () reminded me of some information that might be of interested to anyone using the clickLine() function I posted (or the described method in general). This only works with fields with no wrapped text. Because HyperCard can wrap a long line onto two or more lines yet still consider it to be only one line, using clickLine() on one of these wrapped lines will result in identifying a line farther down. In most cases, clickLine is used to select short lines that aren't wrapped, so this is not a problem. If you need to select wrapped lines, there is a solution, but it runs slower than clickLine() and requires version 1.2.1 or higher (but if you aren't using version 1.2.2, you should have your head examined). function wrapClickLine set the lockText of the target to false click at the clickLoc -- one click is sufficient set the lockText of the target to true return word 2 of the selectedLine end wrapClickLine Jim Taylor Microcomputer Support for Curriculum Brigham Young University taylorj@yvax.byu.edu