spohrer-james@yale.UUCP (10/05/87)
From: James Spohrer <spohrer-james> Problem: You want to click on a word in a text field and have that event send you to a new card. Solution1: (Messy) - Write a line lexer that finds the rectangle for each word in the line until it finds the rectangle that was clicked in. Solution2: (Easier, but...) - In developing a mini-code browser, the following was used satisfactorily: Select the word that you wanted to click on by dragging across it in the text field. Define a button called GOTO above the text-field. Click the GOTO button, at it takes you to the documentation for that word, if you have a script associated with the button like the following: on mouseUp find the Selection in field "Documentation-for-Word" end mouseUp In your documentation cards, give them each a name field called Documentation-for-Word, and put the word's name in that text field. So instead of clicking on the word, you have to Select the word by dragging, and then click the GOTO button. Thanks to Stan Letovsky and Charlie Martin for parts of the "solutions". P.S. I would like to hear alternative solutions. -Jim Spohrer SPOHRER@YALE (203) 432-1227 ------- -------