Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!oliveb!amiga!boing!dale From: dale@boing.UUCP (Dale Luck) Newsgroups: comp.sys.amiga.tech Subject: Re: superbitmap windows & other stuff Message-ID: <345@boing.UUCP> Date: 14 Aug 88 16:19:37 GMT References: <8808132305.AA13416@decwrl.dec.com> Reply-To: dale@boing.UUCP (Dale Luck) Organization: Boing, Milpitas, Ca. Lines: 43 In article <8808132305.AA13416@decwrl.dec.com> leibow@video.dec.com (MICHAEL LEIBOW) writes: >Hi, > > >My comments: > I was looking for a way to change which part of the bitmap in >a superbitmap window is visible. I was expecting a "window" routine to >do this, but found that I have to use a lower level layer routine. I don't >think it is a good idea to have to mess with fields of the window structure. >Having to use the layers library to manipulate windows is like going into >the intuition base and changing the FirstWindow list in order to reorganize >the way the windows are stacked. I wish the people at Commodore would add >some more useful high level routines to the intuition library instead of >making us go "behind the window's back" and use the layers library. Another >example of this is making a clipping region. By that reasoning you should not be using Move,Draw,SetRGB4 either since these are graphics functions and you would be circumventing intuition. Intuition does not provide an 'intuition' function for every possible layer capability. We designed these libraries knowing that as programmers become more sophisticated they will need more capabilities and these capabilities need to reside in the libraries that actually do the work. Turns out, intuition handles a superbitmap window like any other window. It has no idea their is really another bitmap associated with it except at creation time when it passes the parameter to createlayer. But once it is created intuition treats it like any other layer. Think of the layer library, in your case, as an associate to intuition. It is ok to call many of the layer library functions. I guess it would be a good idea if CA spelled out which layer functions are ok to use in an intuition environment. > > > --Mike Leibow -- Dale Luck Boing, Inc. {cbmvax|oliveb|pyramid}|!amiga!boing!dale Although I do contract work for Amiga-LosGatos, my opinions probably don't represent those of Commodore or its management or its engineers, but I think the world would be a better place if they did.