home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5647 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: news.tau.ac.il!usenet
  2. From: Avi Lev <avil@sapiens.com>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: PubScreens
  5. Date: Mon, 18 Mar 1996 08:54:59 +0200
  6. Organization: Sapiens Technologies
  7. Message-ID: <314D08C3.2A05@sapiens.com>
  8. References: <4i9qd2$4tk@news.aladdin.co.uk>
  9. NNTP-Posting-Host: honda.sapiens.co.il
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. jon@post.aladdin.co.uk wrote:
  16. > I've been trying to get Intuition, Exec or someone to signal me when
  17. > windows on my PubScreen have close, however, using
  18. > SA_PubSig,  1L<<pubsig,
  19. > where pubsig was allocated using AllocSig I never get woken up from
  20. > a Wait and using
  21. > SA_PubSig, pubsig,
  22. > i get woken up even if a window is still open, why???
  23. > Please forgive me for my great stupidity, how about a nice example?
  24.  
  25. well, you're obviously a newbie if you're having problems with these trivialities, but we all have to start 
  26. somewhere. OK, wow, this is ancient history indeed, well you have to wait on the window's message port signal 
  27. bit, the message port was allocated when you opened the window and you don't have to allocate any signal, 
  28. it's already allocated for you (ain't the OS user-friendly ;), all you have to do is specify the IDCMP 
  29. signals you wanna hear about, in your case i assume CLOSE_WINDOW ,if memory serves, is included and then, 
  30. after openning the window, you Wait() on the (1 << window->MsgPort->mp_SigBit) signal bit, and what do you 
  31. know, it actaully works. as for an example...sorry you'll have to hit the books for that as i don't remember 
  32. all the specifics by heart and i'm not in the vicinity of my precious Amiga (i'm at work), but that's the 
  33. basic idea anyway. you're free to consult others but you'll get to the same answer as there's only 1 solution 
  34. here.
  35.  
  36. well, hope this help, ciao.
  37.  
  38. Avi Lev.
  39.