Path: utzoo!mnetor!uunet!wucs1!wuphys!lel From: lel@wuphys.UUCP (Lyle E. Levine) Newsgroups: comp.sys.amiga.tech Subject: Re: IDCMP ports Message-ID: <538@wuphys.UUCP> Date: 22 Apr 88 18:48:40 GMT References: <2336@mit-amt.MEDIA.MIT.EDU> <1592@puff.cs.wisc.edu> Reply-To: lel@wuphys.UUCP (Lyle E. Levine) Distribution: na Organization: Physics Dept., Washington U. in St. Louis Lines: 35 Keywords: screens windows In article <1592@puff.cs.wisc.edu> avery@puff.WISC.EDU (Aaron Avery) writes: ->In article <2336@mit-amt.MEDIA.MIT.EDU> dlleigh@media-lab.UUCP (Darren L. Leigh) writes: ->>If I have an application that has created a custom screen and I don't ->>want to open any windows, how do I get an IDCMP port between me and ->>Intuition? All the documentation talks about windows and I don't see -> ->I believe you are correct about everything. You must have a window to get ->Intuition to send you IDCMP messages. Yes, this is probably why you see ->gratuitous tiny windows all the time. One of the better ways to do what you ->want is to do what uShow does. It opens a tiny, invisible window consisting ->entirely of its close gadget in the upper left corner of its screen. This ->gives you a close gadget for your screen, and a window structure with which ->to manage IDCMP messages. If you're not sure how to make it invisible, try ->BORDERLESS and BACKDROP in the NewWindow's Flags field. -> ->-- ->Aaron Avery (avery@puff.cs.wisc.edu) -> ({seismo,caip,allegra,harvard,rutgers,ihnp4}!uwvax!puff!avery) This is very similar to what I do in the ShowPic() subroutine of my library. I put a small invisible window in the upper left corner of the screen. I use NO gadgets however. I use the ACTIVATE flag to signal me if the window has been clicked in. If so, I close the display and exit the subroutine. This seems slightly cleaner and simpler to me... ========== IBM is a Division of Sirius Cybernetics Corporation "their fundamental design flaws are completely hidden by their superficial design flaws." - "So Long And Thanks For All The Fish" Lyle Levine: Paths -> ihnp4!wuphys!lel Best way: (314)889-6379 uunet!wucs!wuphys!lel