home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / hypercar / 4932 < prev    next >
Encoding:
Text File  |  1993-01-25  |  2.7 KB  |  48 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!caen!uvaarpa!murdoch!curry.edschool.Virginia.EDU!mhz7c
  3. From: mhz7c@curry.edschool.Virginia.EDU (Mark H. Zollinhofer)
  4. Subject: Re: Problem with putting text in the middle of a field
  5. Message-ID: <1993Jan26.035723.17173@murdoch.acc.Virginia.EDU>
  6. Sender: usenet@murdoch.acc.Virginia.EDU
  7. Organization: University of Virginia
  8. References: <1993Jan15.194100.3789@udel.edu>
  9. Date: Tue, 26 Jan 1993 03:57:23 GMT
  10. Lines: 36
  11.  
  12. vaughn@pluto.cis.udel.edu  writes:
  13. > As many people say when posting here, this is probably a simple problem! :-)
  14. > I'm writing a Hypercard program for children that will make it easier for them
  15. > to write programs (which will control devices built with Legos using the Pearl
  16. > Controller, but this is incidental and isn't important to my question).
  17. > I have two fields, one which is unlocked and contains the program, and one
  18. > which is locked and contains a list of functions and commands that they can
  19. > click on.  When a command or function in the second field is chosen, it is
  20. > put into the program field at the insertion point, along with any parameters
  21. > that they have to supply.  This is in order to minimize the typing they have
  22. > to do, and to show them what the parameters of the various keywords are.
  23. > Unfortunately, I have tried at least half a dozen different ways to do this.
  24. > My problem mostly stems from the fact that you lose the ability to know where
  25. > the insertion point is in the first field the second you click outside of it.
  26. > I tried several ways to remember it, but nothing has worked.  The most 
  27. > success I've had so far was by just using the "type" command.  When they
  28. > click on a keyword in the second field, it is "type"d, which makes it appear
  29. > at the insertion point.  The problem with this is that both fields are 
  30. > scrollable, and if you use the scroll bar on the field with the list of 
  31. > keywords, the insertion point is moved to the message box, and I'm out of luck
  32. > again.
  33. Just a thought -- could you script in a procedure that would
  34. put in place and ampersand or some other unlikely character at
  35. the loc of the insertion point, and then take advantage of the
  36. find command to locate the ampersand again and replace the
  37. selectedText with the line from the second field?  Never tried
  38. it but it seems logical.  ??  That's all you get from me for
  39. two cents!!
  40. --
  41. | Mark H. Zollinhofer  --UVa Ph.D.student      Quotable quote:          |
  42. |   619 Highland Ave.              |     "There's no need to take God   |
  43. |   Charlottesville, VA 22903      |      seriously." -Lot's wife       |
  44. |   internet: markz@virginia.edu   |                  (Gen 19:26)       |
  45.