Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!mcnc!duke!romeo!ndd From: ndd@romeo.cs.duke.edu (Ned D. Danieley) Newsgroups: comp.windows.x Subject: resource conversion and XtInitialize in R3 Keywords: X11R3 Message-ID: <14415@duke.cs.duke.edu> Date: 5 May 89 14:02:54 GMT Sender: news@duke.cs.duke.edu Lines: 38 I'm trying to make a text widget (asciiDiskWidgetClass) and add a scroll bar to it. When I initialize X via XtToolkitInitialize(); context = XtCreateApplicationContext(); dpy = XtOpenDisplay(context, NULL, "test", "Test", NULL, 0, argc, argv); toplevel = XtAppCreateShell(NULL, NULL, applicationShellWidgetClass, dpy, NULL, NULL); and make the text widget XtSetArg(args[0], XtNfile, (XtArgVal )tmp_file); XtSetArg(args[1], XtNeditType, XttextAppend); XtSetArg(args[2], XtNtextOptions, (XtArgVal )wordBreak|scrollVertical); foo = XtCreateManagedWidget("text", asciiDiskWidgetClass, parent, args, 3); then running the program results in an X Toolkit error saying that there isn't a converter for String to Orientation, and I don't get a scrollbar. However, if I change the initialization to toplevel = XtInitialize("textTest", "Demo", NULL, NULL, argc, argv); dpy = XtDisplay(toplevel); I don't get the error, and the scroll bar is fine. (I also change from XtAppMainLoop(context) to XtMainLoop().) I've looked at the code for XtInitialize, and I can't see any reason for this. Does anyone know why this happens? Ned Danieley (ndd@sunbar.mc.duke.edu) Basic Arrhythmia Laboratory Box 3140, Duke University Medical Center Durham, NC 27710 (919) 684-6807 or 684-6942