Path: utzoo!mnetor!uunet!husc6!think!ames!ucbcad!ucbvax!cbosgd!cbdkc1!joe From: joe@cbdkc1.ATT.COM (Here comes the ...) Newsgroups: comp.sys.mac Subject: PICT's in LSC Message-ID: <2592@cbdkc1.ATT.COM> Date: 8 Dec 87 14:51:34 GMT References: Hes a good boy! Reply-To: joe@cbdkc1.UUCP (Joseph !. Judge) Organization: AT&T Bell Laboratories, Columbus Lines: 45 Keywords: Stress! Frustration! (Dang computer doesn't do what I want, does what I say ... mumble.. mumble) This is really simple. Would some LSC/Resource/Quickdraw person tell me what's wrong ?? I have a picture in MacPaint, I want to show as the Title Screen in a window for an application/game (to be posted when done). OK here's what I do: ------------------------------------------------------------------------------ - put the selection box around the area (about 1/2 the screen size). actual coordinates are: top 25, left 03, bottom 225, right 508 - Copy it out, pull down apple menu to scrapbook, paste the picture in it. - go to ResEdit, paste the Picture in my built application. - Info on it, set it to rsrc # 256 - I also make a WIND, rsrc# 256 also,:top 25, left 03, bottom 225, right 508 ------------------------------------------------------------------------------ (Don't flame, this code is from (hazy, anger filled) memory: ) I try two things in C: 1) MyWindPtr = GetNewWindow(256); MyPicHdl = (PicHandle)GetPicture(256); SetWindowPic(MyWindowPtr, MyPicHdl); /* tried & operator on these */ ShowWindow(MyWindPtr); /* something like this */ and 2) MyPicHdl = (PicHandle)GetPicture(256); SomeRect = (**MyPicHdl).picFrame; MyWindPtr = NewWindow(&w_rec, &SomeRect, blah, blah); DrawPicture(&SomeRect, MyPicHdl); /* something like this */ ------------------------------------------------------------------------------ Questions are: WHY don't these work? WHAT specific code, exactly, would take a PICT rsrc and show it in a screen??????? THANK YOU - PLEASE... -- Joseph Judge ihnp4!cbdkc1!joe AT&T Bell Labs --