ndd@romeo.cs.duke.edu (Ned D. Danieley) (05/05/89)
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
kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (05/05/89)
> 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 You need to apply fix #9. Since the fixes may depend upon each other it is best to apply fixes 1-9. Chris D. Peterson MIT X Consortium
swick@ATHENA.MIT.EDU (Ralph R. Swick) (05/06/89)
> running the program results in an X Toolkit error saying that > there isn't a converter for String to Orientation Please install fix9