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