home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!agate!garnet.berkeley.edu!jstern
- From: jstern@garnet.berkeley.edu ()
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: Multi-part field OR selecting multiple fields
- Date: 25 Jan 1993 19:58:20 GMT
- Organization: University of California, Berkeley
- Lines: 48
- Message-ID: <1k1gos$9gl@agate.berkeley.edu>
- References: <1993Jan24.004224.4137@netcom.com>
- NNTP-Posting-Host: garnet.berkeley.edu
-
- In article <1993Jan24.004224.4137@netcom.com> ptrubey@netcom.com (Phil Trubey) writes:
- >
- >So ... does anyone know of a PD or commercial XCMD that implements
- >a table view. I envision this XCMD doing one of two things:
- >
- >- implement a field that allows multiple items of data to be placed in
- > a line such that each item starts at some tab boundary.
- >
- >OR
- >
- >- implement a field type that allows more than one field line to be
- > selected at the same time.
- >
- >Thanks for any info or pointers.
- >--
- >
- If you find anything that does this, please post it.
- In the meantime, the way I've done this is to create a transparent
- button that covers the width of all (3) fields, and is the height
- of a single line. When you want to hilite a "row", you simply set
- the topleft, or, rect, or loc of the button so that it's in the
- right place, and set its hilite to true.
-
- Here's sample code:
-
- on mouseup
- global currentRow
- put word 2 of the clickline into currentRow
- put (currentRow * the textheight of me) + B
- item 2 of the rect of me - 10 into theVloc
- put item 1 of the rect of me into theHloc
- set the loc of bg btn hiliteRow to theHloc,theVloc
- set the hilite of bg btn hiliteRow to true
- end mouseup
-
- You'd then want to add code that would deal with the cutting,copying,
- and pasting (i.e. trapping cut and copy so that it puts all 3 pieces
- into a global, and paste so that it uses what's in the global, rather
- than what's on the clipboard, and puts stuff in the right place.)
-
- hope this helps.
-
- Judy Stern
- Instructional Technology Program
- UC Berkeley
- jstern@garnet.berkeley.edu
-
-
-