home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!gossip.pyramid.com!decwrl!elroy.jpl.nasa.gov!popeye!haluska
- From: haluska@popeye.jpl.nasa.gov (James Haluska)
- Subject: Problems with Athena Tree Widget
- Message-ID: <1992Jul23.221513.1048@elroy.jpl.nasa.gov>
- Sender: haluska@popeye (James Haluska)
- Nntp-Posting-Host: popeye.jpl.nasa.gov
- Organization: Command Control Automations Project, JPL
- Date: Thu, 23 Jul 1992 22:15:13 GMT
- Lines: 37
-
- I am trying to use the Athena tree widget on a Sparc IPX running 4.1.2 SunOS,
- X11R5 fix 11. The problem I am having is that if I do not set the XtNtreeParent
- resource when the child of the tree is created It can not be set using XtSetValue. For example If I have,
-
-
- tree_widget = XtCreateWidget("tree", treeWidgetClass,
- parent_widget, NULL, 0);
-
- ....
- n = 0;
- XtSetArg(wargs[n], XtNtreeParent, parent); ++n;
- widget = XmCreateRowColumn(tree_widget, leaf_name, wargs, n);
- XtManageChild(widget);
- then create children inside row column;
-
-
- This works correctly, but if you have:
-
-
- tree_widget = XtCreateWidget("tree", treeWidgetClass, parent_widget, NULL, 0);
-
- ....
-
- n = 0;
- widget = XmCreateRowColumn(tree_widget, leaf_name, wargs, n);
- XtManageChild(widget);
- XtSetArg(wargs[n], XtNtreeParent, parent); ++n;
- XtSetValues(widget, wargs, n);
- then create children inside row column;
-
-
- This doesn't work. Has anybody else experienced this problem. Any workarounds,
- any help would be appreciated.
-
- ===============================================================================
-
- J. Haluska haluska@popeye.jpl.nasa.gov
-