Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!lll-crg!lll-lcc!well!dwb From: dwb@well.UUCP (David W. Berry) Newsgroups: net.micro.mac Subject: Re: DA Dialog WIndow Message-ID: <1327@well.UUCP> Date: Tue, 24-Jun-86 05:59:28 EDT Article-I.D.: well.1327 Posted: Tue Jun 24 05:59:28 1986 Date-Received: Thu, 26-Jun-86 02:12:23 EDT References: <775@pucc.BITNET> Reply-To: dwb@well.UUCP (David W. Berry) Organization: Whole Earth Lectronic Link, Sausalito CA Lines: 30 In article <775@pucc.BITNET> 6090617@pucc.BITNET writes: > > 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 following has worked fine for me: dlog = GetNewDialog(AboutDialog, &aboutDialog, (DialogPtr) -1); GetDItem(dlog, AboutText, &type, &hand, &rect); type = userItem; hand = (Handle) DrawAboutItems; SetDItem(dlog, AboutText, type, hand, &rect); For what it's worth so did: SetDItem(dlog, AboutText, userItem, DrawAboutItems, &rect); and SetDItem(dlog, AboutText, userItem, &DrawAboutItems, &rect); My suggestion would be to make sure your da is locked and not moving about during the call. -- David W. Berry dwb@well.uucp dwb.Delphi dwb.GEnie 293-0544.408.MaBell DOWN WITH FASCIST APPLE!