Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!oliveb!amdahl!JUTS!duts!gjf00 From: gjf00@duts.ccc.amdahl.com (Gordon Freedman) Newsgroups: comp.windows.x.motif Subject: Re: Help - I've lost the Examples... Message-ID: <924g02G5052W01@JUTS.ccc.amdahl.com> Date: 2 Mar 91 03:10:37 GMT References: <2070@abvax.UUCP> Sender: netnews@ccc.amdahl.com Reply-To: gjf00@DUTS.ccc.amdahl.com (Gordon Freedman) Organization: Amdahl Corporation, Sunnyvale CA Lines: 32 In article <2070@abvax.UUCP> rep@odin.icd.ab.com (Robert E. Pappenhagen) writes: > >Help - I/ve lost the posting that said where to get the Motif examples.... > >I,m a new unix user who's trying to convert a small Athena Widget application >to Motif... > >At the moment my call to XtAddCAllback() says it >X Toolkit Warning: Cannot find callback list in XtAddCallbacks > > > XtAddCallback( boxes[i], XtNcallback, Station, 0); > >Thanks.... Bob > >Bob Pappenhagen - Currently owned by Tasha, a 1 year old Bernese Mtn Dog >All opinions expressed are hers > >: Look in the Motif man page for the widget you want to add a callback to. In this case you probably want to do: XtAddCallback (boxes[i], XmNactivateCallback, Station, 0) ; or something like that (the operative change here is XmNactivateCallback). You don't specify XtNcallback since that resource doesn't usually exist for motif widgets. The man page will list all of the types of callbacks, what is passed to the callbacks/etc. -- Gordon Freedman: gjf00@duts.ccc.amdahl.com Disclaimer: My opinions! Not my employers!