home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / hypercar / 2859 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.2 KB

  1. Xref: sparky comp.sys.mac.hypercard:2859 comp.sys.mac.misc:13671 comp.sys.mac.apps:12326
  2. Path: sparky!uunet!decwrl!oracle!unrepliable!bounce
  3. Newsgroups: comp.sys.mac.hypercard,comp.sys.mac.misc,comp.sys.mac.apps
  4. From: cmi@oracle.uucp (Eileen Riley)
  5. Subject: Re: Supercard: Dragging objects in Browse mode
  6. Message-ID: <1992Jul22.203923.1143@oracle.us.oracle.com>
  7. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  8. Nntp-Posting-Host: mailseq.us.oracle.com
  9. Organization: Oracle Corporation, Redwood Shores CA
  10. References: <1992Jul21.143452.12628@news.cs.brandeis.edu>
  11. Date: Wed, 22 Jul 1992 20:39:23 GMT
  12. X-Disclaimer: This message was written by an unauthenticated user
  13.               at Oracle Corporation.  The opinions expressed are those
  14.               of the user and not necessarily those of Oracle.
  15. Lines: 14
  16.  
  17. Try this:
  18.  
  19. on mouseDown
  20.   put the mouseLoc into theMLoc
  21.   set the loc of cd fld myFld to theMLoc -- this will center the object on the mouseLoc
  22.  -- to move multiple objects along with the first one...
  23.  -- simply figure the offset of the subsequent objects to the 'root' object
  24.  -- i.e., moving a btn with a field:
  25.  put item 2 of theMLoc-10 into xLoc
  26.  set the loc of cd btn secondBtn to (xLoc,item 1 of theMLoc)
  27.  
  28. -- you get the idea
  29.   
  30. end mouseDown
  31.