home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14295 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.6 KB  |  49 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!gossip.pyramid.com!decwrl!elroy.jpl.nasa.gov!popeye!haluska
  3. From: haluska@popeye.jpl.nasa.gov (James Haluska)
  4. Subject: Problems with Athena Tree Widget
  5. Message-ID: <1992Jul23.221513.1048@elroy.jpl.nasa.gov>
  6. Sender: haluska@popeye (James Haluska)
  7. Nntp-Posting-Host: popeye.jpl.nasa.gov
  8. Organization: Command Control Automations Project, JPL
  9. Date: Thu, 23 Jul 1992 22:15:13 GMT
  10. Lines: 37
  11.  
  12. I am trying to use the Athena tree widget on a Sparc IPX running 4.1.2 SunOS,
  13. X11R5 fix 11. The problem I am having is that if I do not set the XtNtreeParent
  14. resource when the child of the tree is created It can not be set using XtSetValue. For example If I have,
  15.  
  16.      
  17.  tree_widget = XtCreateWidget("tree", treeWidgetClass,
  18.                                 parent_widget, NULL, 0);
  19.  
  20.   ....
  21.  n = 0;
  22.   XtSetArg(wargs[n], XtNtreeParent, parent); ++n;
  23.   widget = XmCreateRowColumn(tree_widget, leaf_name, wargs, n);
  24.   XtManageChild(widget);
  25.   then create children inside row column; 
  26.  
  27.  
  28.   This works correctly, but if you have:
  29.  
  30.  
  31.   tree_widget = XtCreateWidget("tree", treeWidgetClass,                                parent_widget, NULL, 0);
  32.  
  33.   ....
  34.  
  35.   n = 0;
  36.   widget = XmCreateRowColumn(tree_widget, leaf_name, wargs, n);
  37.   XtManageChild(widget);
  38.   XtSetArg(wargs[n], XtNtreeParent, parent); ++n;
  39.   XtSetValues(widget, wargs, n);
  40.   then create children inside row column;
  41.  
  42.   
  43.   This doesn't work. Has anybody else experienced this problem. Any workarounds,
  44.   any help would be appreciated.
  45.  
  46. ===============================================================================
  47.  
  48. J. Haluska         haluska@popeye.jpl.nasa.gov
  49.