home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11732 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  2.6 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!rutgers!cbmvax!bj
  2. From: bj@cbmvax.commodore.com (Brian Jackson - Amiga Networking)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ASL and GadTools libraries.
  5. Message-ID: <33735@cbmvax.commodore.com>
  6. Date: 28 Jul 92 17:30:25 GMT
  7. References: <1992Jul27.191144.25772@wam.umd.edu>
  8. Reply-To: bj@cbmvax.commodore.com (Brian Jackson - Amiga Networking)
  9. Organization: Commodore, West Chester, PA
  10. Lines: 42
  11.  
  12. In article <1992Jul27.191144.25772@wam.umd.edu> stark@wam.umd.edu (Mike Stark) writes:
  13. >I posted a question a while back about using ASL.  Here is a summary of a few
  14. >of the things that I found out.  Not all of them are related to ASL.
  15. >
  16. >When using the hook function to get messages from a shared IDCMP while an ASL
  17. >requester is displayed, it works to return a NULL pointer instead of the 
  18. >pointer to the message ASL passed you. (The reason you would want to do this
  19. >is if you want to close the window with which the message is associated while
  20. >the ASL requester is displayed.)  The reason it is OK is that ASL calls 
  21. >GT_ReplyIMsg which doesn't mind being passed a NULL pointer.  The autdocs
  22.                                                                ^^^^^^^^^^^
  23. >take a strong stance against doing this but it works.  I wish the autodocs
  24.  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  25. Why do you think they take such a strong stance?  Sheesh.  
  26.  
  27. >said this was OK because I really want to let the user of my program close 
  28. >windows while the ASL requester is active.  (I have a problem with MFR which
  29. >may be caused by it's not using GT_ReplyIMsg.)
  30.  
  31. Wishing does not make it so.  Here's a quote that should be a primary
  32. thought as you program the Amiga :
  33.  
  34.   "Please disconnect in your mind the concepts 'seems to work just fine'
  35.    and 'Is allowed'" - Peter Cherna                              |
  36.  
  37. >GetMsg/GT_FilterIMsg/GT_PostFilterIMsg/ReplyMsg does not operate the same
  38. >as GT_GetIMsg/GT_ReplyIMsg.  In particular, if you are using the GT_Filter
  39. >routines, you start losing IDCMP_MOUSEMOVE events when you are using the
  40. >slider gadgets from GadTools.  I imagine that GadTools turns them off so as
  41. >not to get too far behind and GT_PostFilterIMsg doesn't turn them back on
  42. >again while GT_ReplyIMsg does. Go figure.
  43.  
  44. Yes, go figure (again)
  45.  
  46. >Just a few things I thought you all should know.  If anyonse has a way that 
  47. >I could close windows while the file requester is open and still let ASL 
  48. >(Or MFR) reply to the IntuiMessage, I would like to hear it
  49. >
  50. >---Mike Stark                         | stark@umdhep.umd.edu
  51. >   Physics Department
  52. >   University of Maryland
  53. >   College Park, MD  20742
  54.