home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / apple2 / 25773 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.3 KB

  1. Path: sparky!uunet!newsflash.concordia.ca!clyde.concordia.ca!altitude!vandry
  2. From: vandry@CAM.ORG (Phillip Vandry)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: Patching the menu manager
  5. Message-ID: <BzGv1o.1zC@CAM.ORG>
  6. Date: 18 Dec 92 17:53:45 GMT
  7. References: <BzD8FB.FJE@CAM.ORG> <mattd-161292192238@city-lights.apple.com>
  8. Organization: Champlain Regional College, St-Lambert QC CANADA
  9. Lines: 47
  10.  
  11. mattd@apple.com (Matt Deatherage) writes:
  12.  
  13. >In article <BzD8FB.FJE@CAM.ORG>, vandry@CAM.ORG (Phillip Vandry) wrote:
  14. >> For a program I am writing I need to patch the MenuSelect call in the Menu
  15. >> Manager.
  16. >
  17. >As was stated in an earlier post by me, you may just _think_ you need to
  18. >patch MenuSelect to do what you want to do.
  19. >
  20. >So tell us what it is you want to do, and maybe we can tell you how to do
  21. >it in a way that will be finished before Dick Clark ages.
  22. >
  23.  
  24. Okay. I want to write some sort of accessory (either an Init or an NDA) so
  25. menus can be accessed without using the mouse, in a manner similar to
  26. MicroSoft's (on the IBM) or ProTerm (but on the desktop).
  27.  
  28. The options I considered are:
  29.  
  30. 1. Completely fake mouse movements so that the entire system thinks the user
  31.    is actually using the mouse.
  32.  
  33.    Drawbacks: The mouse pointer would jump around as the user presses keys.
  34.               It's hard and long.
  35.  
  36. 2. Patch GetNextEvent to eat mouse events and generate mouse events based on
  37.    keypresses (would use a flag for Normal mode//Menu mode)
  38.  
  39.    Drawbacks: It's awfully hard to patch GetNextEvent when GSBug uses
  40.               GetNextEvent to get its keyboard input.
  41.               The code would probably be pretty large and incompatibilities
  42.               might be a big problem.
  43.  
  44. 3. Patch MenuKey to get keypresses and call the apropriate routines in the
  45.    Menu DefProc to do all the "dirty work"
  46.    This is probably the "cleanest" approach.
  47.  
  48.    Drawbacks: There is no way of knowing where the standard DefProcs are
  49.               loacted. This would only work for custom menus.
  50.  
  51. Suggestions?
  52.  
  53.  ______________________________________________________________________
  54. |~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  55. | Phillip Vandry | Vandry@Cam.Org | Merry Christmas II you!            |
  56. |________________|________________|____________________________________|
  57.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  58.