Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!jstravis From: jstravis@athena.mit.edu (John S. Travis) Newsgroups: comp.windows.x Subject: Xdefaults Summary: X11R3, Hp widgets Message-ID: <1990Feb20.191944.23028@athena.mit.edu> Date: 20 Feb 90 19:19:44 GMT References: <461@zok.UUCP> Sender: news@athena.mit.edu (News system) Reply-To: jstravis@athena.mit.edu (John S. Travis) Organization: Massachusetts Institute of Technology Lines: 43 I have a simple graphics program that plots points of lines. However, when i run it I get this message: X Toolkit Warning: Form: The reference widget was not found. X Toolkit Warning: Form: The reference widget was not found. despite the fact that I appear to have taken care of that in my .Xdefaults file. the weird thing is I only get this message on the schools VAXes. When i ported it over to my prof DEC3100 it worked fine placing the menus at top and the canvas below. On the Vaxes, the menus overlap on the canvas-I guess b/c they are not attached. Why is there the diffrence. Below is part of the code, creating the widgets as well as the relevant resource file. thanks for any help john travis jstravis@athena.mit.edu --------------------------------------------------------------- toplevel = XtInitialize(argv[0],"Stream",NULL,0,&argc,argv); framework = XtCreateManagedWidget("framework",XwformWidgetClass,toplevel,NULL,0); menu = XtCreateManagedWidget("menu",XwrowColWidgetClass,framework,NULL,0); scale_it(data[0].Xmax,data[0].Ymax,data); XtSetArg(wargs[0],XtNheight,data[0].Ymax * data[0].scale_factor); XtSetArg(wargs[1],XtNwidth,data[0].Xmax * data[0].scale_factor); canvas = XtCreateManagedWidget("canvas",XwworkSpaceWidgetClass,framework,wargs,2); ########################################### # Stream resource file ########################################### Stream*canvas.yRefName: menu Stream*canvas.xRefName: framework Stream*canvas.xResizable: TRUE Stream*canvas.xAddWidth: TRUE Stream*canvas.yResizable: TRUE Stream*canvas.xAttachRight: TRUE Stream*canvas.xAttachLeft: TRUE Stream*canvas.yAddHeight: TRUE Stream*canvas.yResizable: TRUE Stream*canvas.yAttachTop: TRUE