Article View: comp.windows.x
Article #37110Xdefaults
From: John S. Travis
Date: Wed, 21 Feb 1990 16:01
Date: Wed, 21 Feb 1990 16:01
43 lines
2345 bytes
2345 bytes
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
Technical Details
Message-ID:
<1990Feb21.160122.3758@athena.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!elroy.jpl.nasa.gov!usc!snorkelwacker!bloom-beacon!jstravisShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!elroy.jpl.nasa.gov!usc!snorkelwacker!bloom-beacon!jstravis From: jstravis@athena.mit.edu (John S. Travis) Newsgroups: comp.windows.x Subject: Xdefaults Summary: X11R3, Hp widgets Message-ID: <1990Feb21.160122.3758@athena.mit.edu> Date: 21 Feb 90 16:01:22 GMT Sender: news@athena.mit.edu (News system) Reply-To: jstravis@athena.mit.edu (John S. Travis) Organization: Massachusetts Institute of Technology Lines: 43