Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!rutgers!aramis.rutgers.edu!topaz.rutgers.edu!jjoshua From: jjoshua@topaz.rutgers.edu (Jon Joshua) Newsgroups: comp.sys.mac.programmer Subject: What I learned today. Keywords: Constants aren't Message-ID: Date: 11 Feb 90 22:20:58 GMT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 32 I spent a few hours today trying to figure out why FrameRect() wouldn't. I was making a DA and it was working when run under LS C DA test shell. Here was my problem... PenPat (black); FrameRect (); It seems that when you write a DA certain constants aren't available as they are when you write Apps. Color constants are a few of them. I had to get the color pattern from SysPatList. So, here was the fix... GetIndPattern (foo, bar, &blackPattern); PenPat (blackPattern); FrameRect (); Oh, well. I hope that this may spare someone from a few hours of head scratching. JOn. -- /\ ? ________________ jjoshua@topaz.rutgers.edu \ ____ __ fgu |.signature under| Anything is possible... \ | | / | orywlut- | construction | ========== gfgsdfsdfsd |________________| _____________________________OO_____O___hfdhksjdhfksjdfs_______||__________||__