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