Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.programmer Subject: Re: wb2.0 screens problem. Message-ID: <20447@cbmvax.commodore.com> Date: 8 Apr 91 15:41:54 GMT References: Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore-Amiga, Inc. West Chester, PA. Lines: 54 In article Sam_Yee@resbbs.UUCP (Sam Yee) writes: >I need help in making a custom screen having WB2.0 looks. >I am not a developer(not yet atleast) so I can't get any programming >docs on the new OS. >newscrVars: Your NewScreen seems fine. >screenTag: > dc.l SA_Pens ;ti_Tag > dc.l drawInfo ;ti_Data No. SA_Pens takes a pointer to a UWORD array of Pens. It doesn't take a pointer to a DrawInfo. use dc.l penArray ; ti_Data for SA_Pens instead. Also, every tag list is terminated by TAG_END (which doesn't need a data item). So also add dc.l TAG_END ; end of tag-list >drawInfo: Omit this. DrawInfo structures are never allocated by the program; they're always make by Intuition. >penArray: > dc.b 3 ;detailpen Use dc.w for each pen, since the array is an array of UWORDs. > dc.b 8 ;numdripens(don't know what this does!) No, you don't put the number of pens at the end. Terminate the array with ~0. >I didn't use OpenScreenTagList(), but that shouldn't make a difference >since I set the NS_EXTENDED bit in the "type" field of the newscreen >structure. True... >sam_yee@resbbs.wimsey.bc.ca Peter -- Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com My opinions do not necessarily represent the opinions of my employer. "If all you have is a hammer, everything looks like a nail."