home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / motif / 8718 next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.8 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!Germany.EU.net!esf!tat2!klaus
  2. From: klaus@tat2.esf.de (Klaus Wicovsky)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: XmSelectionBoxGetChild crashes application
  5. Message-ID: <5935@esf.esf.de>
  6. Date: 21 Jan 93 06:58:46 GMT
  7. Sender: news@esf.esf.de
  8. Reply-To: klaus@tat2.esf.de (Klaus Wicovsky)
  9. Organization: ESF Headquarters, Berlin, FRG
  10. Lines: 32
  11. Nntp-Posting-Host: tat2
  12.  
  13. Hello,
  14.  
  15. I have the following problem: I have a widget A with a callback definition.
  16. In the function that implements the callback, I would like to modify
  17. something in a different widget B, e.g. add a text string to a selection
  18. box. How do I access this widget B???
  19.  
  20. What I tried and failed to do is this:
  21.  
  22. ----------------------------------------------------------------------
  23. void fs_okCB(w, client_data, call_data)
  24. ...
  25. ...
  26.          text=XmSelectionBoxGetChild (w, XmDIALOG_TEXT);
  27.     filename=XmTextGetSelection(text);
  28. ...
  29.     list = XmSelectionBoxGetChild (selected, XmDIALOG_LIST_LABEL);
  30. ----------------------------------------------------------------------
  31.  
  32. Whenever this callback procedure is carried out, my application crashes at
  33. the last line. "w" would be my original widget for which I define this callback
  34. and "selected" would be my new widget, which would like to modify.
  35.  
  36. Although "selected" is globally defined, the last statement crashes my
  37. application. Any  idea why this could happen ???
  38. -- 
  39.    Klaus Wicovsky                                                   
  40.                                                                     
  41.    ESF Headquarters                    Tel : ++49+30-820 903 47      
  42.    Hohenzollerndamm 152                Fax : ++49+30-820 903 19      
  43.    1000 Berlin 33                      UUCP: klaus@esf.de        
  44.    Germany             
  45.