Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!pitt!elvis.cs.pitt.edu!andre From: andre@elvis.cs.pitt.edu Newsgroups: comp.sys.mac.programmer Subject: a question about grafports and windows Message-ID: <10536@pitt.UUCP> Date: 22 May 91 19:58:20 GMT Sender: news@cs.pitt.edu Reply-To: andre@elvis.cs.pitt.edu () Distribution: na Organization: Computer Science Dept., Univ. of Pittsburgh Lines: 39 i have the following code fragment that works except that the ok button does not have the extra rectangle drawn around it. if i move the ShowWindow from its current location to immediately after the GetNewDialog, the bold rectangle is drawn. why? case ABOUT_ITEM: qdialog = GetNewDialog(ABOUT_DIALOG_ID, &sdialog, BRING_TO_FRONT); /* * get the dialog and add the extra box around the ok * button */ GetDItem(qdialog, OK_ITEM, &itype, &hitem, &ritem); GetPort(&gport); SetPort(qdialog); PenSize(3, 3); InsetRect(&ritem, -4, -4); FrameRoundRect(&ritem, 16, 16); PenNormal(); SetPort(gport); /* * do the dialog */ ShowWindow(qdialog); ModalDialog(NULL, &i); CloseDialog(qdialog); break; -andre. Andre Srinivasan :"If you ain't bleeding, you ain't working." 317 MIB : - Pete The Master Tombstone Cutter U. of Pittsburgh :"If it bleeds, we can kill it." andre@cs.pitt.edu : - Arnold Schwarzenager