home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / linux / extra / docs / maillist / text / archive.96 / text2545.txt < prev    next >
Encoding:
Text File  |  1996-07-25  |  1.5 KB  |  46 lines

  1. Rick Ho (a484howa@cdf.toronto.edu) wrote:
  2. > I need help for using HyperCard 2.1 under E/D 1.99q.
  3.  
  4. > HyperCard script allows Command-Clicking and Option-Clicking, which the 
  5. > script checks for OptionKey or CommandKey when clicking on a button.  I 
  6. > don't know if this is a bug or incompatibility, but it just doesn't work 
  7. > when I click on a button with the Option (Right-Alt) Key depressed.
  8.  
  9. > Can someone please help.
  10.  
  11. > Rick
  12. > rick.ho@utoronto.ca
  13.  
  14. I tried a simple script with HyperCard 2.1 under E/NS 1.99q9. I took
  15. the script from HyperTalk 2.0: The Book by Winkler and Kamins. If I
  16. hold down the option key and am using the browse tool, I can drag
  17. the button. (My Option key is the NeXTstation Alternate key.)
  18.  
  19. Here's the script:
  20. -- lets you drag the button if option key is down
  21. -- from HyperTalk 2.0: the book, by Winkler and Kamins
  22. on mouseDown
  23.   if the optionKey is up then pass mouseDown
  24.   repeat until the mouse is up
  25.     set loc of me to the mouseLoc
  26.   end repeat
  27.   exit to HyperCard -- suppress mouseUp
  28. end mouseDown
  29.  
  30. on mouseUp
  31.   play "boing"
  32. end mouseUp
  33.  
  34. By the way, someone complained earlier about not being able to run
  35. HyperCard. They were trying HyperCard 1.2.1. As far as I know, you
  36. have to use at least HyperCard 2.0. As with other apps, ARDI supports
  37. more recent versions and won't work on getting older versions to run
  38. if a more recent version works. I haven't tried later versions (beyond
  39. HyperCard 2.1) or the Executor 2 Beta.
  40.  
  41. Beth Katz
  42. katz@cs.millersv.edu
  43. http://cs.millersv.edu/~katz
  44.  
  45.  
  46.