home *** CD-ROM | disk | FTP | other *** search
- 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
- From: jhenders@jonh.wimsey.bc.ca (John Henders)
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: How to hook into GEM?
- Message-ID: <H.JYEssDVyQBY@jonh.wimsey.bc.ca>
- Date: 20 Aug 92 06:33:04 GMT
- References: Re: How to hook into GEM?
- Reply-To: jhenders@jonh.wimsey.bc.ca
- Organization: Totally Nonexistent
- Lines: 33
- X-Software: HERMES GUS 1.03 Rev. Apr 14 1992
-
- In <448@muller.loria.fr>, Steven Eker writes:
- >
- >Suppose I write a snazzy motif-like GUI, how do I hook into GEM so that I
- >can run GEM DAs from my snazzy 3D menu? More particularly
- >
- >1. How do I find the full (menu entry) names of the available DAs?
- >
- >2. How do I find the 8 char names for appl_find()?
-
- I've never tried to do this, but you'd have to hook into the trap #2
- call, i think, and look for the menuregister call from the desk accessory.
- The main problem is that appearantly Gem replaces it's own vector in
- the trap #2 vector handler after certain calls, so you have to recheck it
- and re-replace it. There was a text file from Charles Johnson that I seem
- to remember described the process, but I don't have it. Maybe someone else
- does. You'd only need to hang onto it until the accessorys had all
- registered, I'd imagine. Also, you'd probably want to pass the menu
- register on to the AES when your done so the accessories could receive the
- messages you then send down the message pipe.
- >
- >3. Is it sufficient to just to send the DA a suitable message thru its pipe
- >or does more need to be done to get it active?
- >
- Once you know the id and name, it should be possible to send acc_open
- messages. Harlekin allows keyboard macros to send open messages, so it
- should be possible, though of course Harlekin manages it's own protocals.
-
- These tricks are probably likely to break on various versions of the
- os as well.
-
-
- --
- jhenders@jonh.wimsey.bc.ca
-