home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / atari / st / tech / 4499 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.9 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!gumby!destroyer!ubc-cs!van-bc!jonh.wimsey.bc.ca!jhenders
  2. From: jhenders@jonh.wimsey.bc.ca (John Henders)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: Re: How to hook into GEM?
  5. Message-ID: <H.JYEssDVyQBY@jonh.wimsey.bc.ca>
  6. Date: 20 Aug 92 06:33:04 GMT
  7. References: Re: How to hook into GEM?
  8. Reply-To: jhenders@jonh.wimsey.bc.ca
  9. Organization: Totally Nonexistent
  10. Lines: 33
  11. X-Software: HERMES GUS 1.03 Rev. Apr 14 1992
  12.  
  13. In <448@muller.loria.fr>, Steven Eker writes:
  14. >
  15. >Suppose I write a snazzy motif-like GUI, how do I hook into GEM so that I
  16. >can run GEM DAs from my snazzy 3D menu? More particularly
  17. >
  18. >1. How do I find the full (menu entry) names of the available DAs?
  19. >
  20. >2. How do I find the 8 char names for appl_find()?
  21.  
  22.     I've never tried to do this, but you'd have to hook into the trap #2
  23. call, i think, and look for the menuregister call from the desk accessory.
  24. The main problem is that appearantly Gem replaces it's own vector in
  25. the trap #2 vector handler after certain calls, so you have to recheck it
  26. and re-replace it. There was a text file from Charles Johnson that I seem
  27. to remember described the process, but I don't have it. Maybe someone else 
  28. does. You'd only need to hang onto it until the accessorys had all 
  29. registered, I'd imagine. Also, you'd probably want to pass the menu 
  30. register on to the AES when your done so the accessories could receive the
  31. messages you then send down the message pipe.
  32. >
  33. >3. Is it sufficient to just to send the DA a suitable message thru its pipe
  34. >or does more need to be done to get it active?
  35. >
  36.     Once you know the id and name, it should be possible to send acc_open
  37. messages. Harlekin allows keyboard macros to send open messages, so it 
  38. should be possible, though of course Harlekin manages it's own protocals.
  39.  
  40.     These tricks are probably likely to break on various versions of the
  41. os as well.
  42.  
  43.  
  44. -- 
  45. jhenders@jonh.wimsey.bc.ca     
  46.