Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!caip!princeton!puvax2!pucc.BITNET!6090617 From: 6090617@pucc.BITNET (Robert Wald) Newsgroups: net.micro.mac Subject: DA Dialog WIndow Message-ID: <775@pucc.BITNET> Date: Sun, 22-Jun-86 21:56:28 EDT Article-I.D.: pucc.775 Posted: Sun Jun 22 21:56:28 1986 Date-Received: Tue, 24-Jun-86 04:39:51 EDT Reply-To: 6090617@pucc.BITNET Organization: Princeton University Computing Center Lines: 35 I'm having a problem passing a procedure pointer to a UserIterm procedure in Lightspeed C. Its taking place inside of a Desk Accesory whose window is a dialog box. I put in the pointer for the UserItem like GetDItem(dpeek,15,&itype,&ihandle,&rr); SetDItem(dpeek,15,itype,&MyItem,&rr); The function is defined as pascal void MyItem(theWindow,itemNo) WindowPtr theWindow; int itemNo; The function is never getting called. I have a SysBeep(3) at the beginning to see if it ever is called. Also a Static Text item is never drawn which comes after the myProc in the item list. Everything works fine if I don't try to replace the pointer so I can use the UserItem, but I need the UserItem. Any Ideas? Another problem (academic): A dialog within a Desk Acc. is supposed to work with all Dialog Mgr calls, but IsDialogEvent returns FALSE; I skip it and pass everything to DialogSelect. Is this right? ------------------- Nexus -------------------- -Rob Wald (PUCC User Services) BITNET: 6090617@PUCC UUCP: ...ALLEGRA!PSUVAX1!PUCC.BITNET!6090617 "Behold, I teach you the Superman! "He isn't Trent Phloog. He is this Lightning He never will be Trent Phloog. He is this madness." He never was Trent Phloog."