Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!m.cs.uiuc.edu!schwager From: schwager@m.cs.uiuc.edu (Michael Schwager) Newsgroups: comp.sys.amiga.programmer Subject: Re: Using the Layers library to do non-Intuition windows Message-ID: <1991Apr27.113212.8006@m.cs.uiuc.edu> Date: 27 Apr 91 11:32:12 GMT References: Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL Lines: 56 jsmoller@jsmami.UUCP (Jesper Steen Moller) writes: >In article <1991Apr24.031607.28073@netcom.COM> rodent@netcom.COM (Ben Discoe) writes: >> >> It seems I did a poor job of stating my original question about using the >> Layers library directly. >> 1. I have 6 years experience, telling me to "get the RKM" hurts. >> 2. I CANNOT use a intuition window, because there is NO WAY to keep >> intuition from drawing into a window when you activate it with the mouse. >Oh yes there is! >> Yes, even if you specify a borderless, title-less window with no gadgets, >> Intuition will still paint a bar at the top of the window when you click >> in it. In my project I open a window with the following NewWindow structure: struct NewWindow SetupWindowOrig = { 225,50, SETUP_X, SETUP_Y, BLUE,BLUE, VANILLAKEY|MOUSEBUTTONS|GADGETUP|GADGETDOWN|INTUITICKS, /* IDCMP flags first */ BORDERLESS|SUPER_BITMAP|RMBTRAP, /* Window Flags */ &SetupGadgets, /* was &MyGadget */ NULL, NULL, /* text */ NULL, NULL, 0, 0, NULL, NULL, CUSTOMSCREEN }; I have a 3 bitplane custom screen open already. Then I do this: (bm is a bitmap structure, of course) InitBitMap (&bm, 3, SETUP_X, SETUP_Y); for (i = 0; i < 3; i++) { if (! (bm.Planes[i] = (PLANEPTR) AllocRaster (SETUP_X, SETUP_Y))) { FreeupRaster(&bm); shutdown ("Can't allocate bitplanes!"); } } /* just a little iff loader into the bitmap here */ dsplay_win ("SetupWindow.iff", &bm, SETUP_X, SETUP_Y); SetupWindowOrig.BitMap = &bm; Then I open my window: if ((SetupWindow = (struct Window *) OpenWindow (&SetupWindowOrig)) == NULL) shutdown ("Can't open setup window"); I never have a problem with Intuition drawing unwanted things into my Window. -Mike