Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!resbbs!Sam_Yee From: Sam_Yee@resbbs.UUCP (Sam Yee) Message-ID: Newsgroups: comp.sys.amiga.programmer Subject: wb2.0 screens problem. Distribution: world Date: 5 Apr 91 17:34:30 PST Organization: Resonance - British Columbia, Canada 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. Here is an excerpt from my program: --------------------------------------------------------------------- DRIF_NEWLOOK equ $00000001 NS_EXTENDED equ $1000 AUTOSCROLL equ $4000 V_HIRES equ $8000 DRI_VERSION equ $0001 newscrVars: dc.w 0,0 ;left-edge/top-edge dc.w 640,200 ;width / height dc.w 3 ;bitplanes dc.b 0,1 ;detailpen,blockpen dc.w V_HIRES ;viewmode dc.w CUSTOM!AUTOSCROLL!NS_EXTENDED ;type dc.l 0 ;font dc.l scrTitle ;title dc.l 0 ;gadgets dc.l 0 ;custombitmap dc.l screenTag ;tagitem screenTag: dc.l SA_Pens ;ti_Tag dc.l drawInfo ;ti_Data drawInfo: dc.w DRI_VERSION ;dri_Version dc.w 10 ;dri_NumPens dc.l penArray ;dri_Pens dc.l 0 ;dri_Font dc.w 3 ;dri_Depth dc.w 640,200 ;dri_ResoltionX, dri_ResolutionY dc.l DRIF_NEWLOOK ;dri_Flags ds.b 28 ;dri_longreserved penArray: dc.b 3 ;detailpen dc.b 1 ;blockpen dc.b 3 ;textpen dc.b 2 ;shinepen dc.b 1 ;shadowpen dc.b 3 ;fillpen dc.b 1 ;filltextpen dc.b 2 ;backgroundpen dc.b 3 ;highlighttextpen dc.b 8 ;numdripens(don't know what this does!) cnop 0,2 ;-------------------------------------------------------------------- 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. My screen palette is the same as the new workbench's. When screen opened the windows looked uglier than before. What am I doing wrong? Thanks in advance... sam_yee@resbbs.wimsey.bc.ca sam_yee@cc.sfu.ca