Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!samsung!uunet!abvax!rep@odin.icd.ab.com From: rep@odin.icd.ab.com (Robert E. Pappenhagen) Newsgroups: comp.windows.x.motif Subject: Help - I've lost the Examples... Message-ID: <2070@abvax.UUCP> Date: 27 Feb 91 17:57:45 GMT Sender: news@abvax.UUCP Organization: Allen-Bradley Company, Industrial Computer Division Lines: 71 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 Station() { exit(0); } main(argc,argv) int argc; char **argv; { Arg toparg[10]; Widget toplevel,box,boxes[64]; int i; int Station(); toplevel = XtInitialize( argv[0], "Xboxes", NULL, 0, &argc, argv ); box = XtCreateManagedWidget( "box", xmRowColumnWidgetClass, toplevel, NULL, 0); /* * Create Some boxes */ for(i = 0 ; i < 64 ; ++i) { XtSetArg(toparg[0],XtNwidth,100); boxes[i] = XtCreateManagedWidget( "stations", xmPushButtonWidgetClass, box, toparg, 1); XtAddCallback( boxes[i], XtNcallback, Station, 0); } /* POP THE WINDOWS */ XtRealizeWidget(toplevel); XtMainLoop(); } Any help or advice would be most help full - this is only a small part of the application - details leftout but it works using the Athena widget set If anyone has a 1:1 relationship between Athena and Motif I'd appreciate it Thanks.... Bob Bob Pappenhagen - Currently owned by Tasha, a 1 year old Bernese Mtn Dog All opinions expressed are hers :