home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!Germany.EU.net!esf!tat2!klaus
- From: klaus@tat2.esf.de (Klaus Wicovsky)
- Newsgroups: comp.windows.x.motif
- Subject: XmSelectionBoxGetChild crashes application
- Message-ID: <5935@esf.esf.de>
- Date: 21 Jan 93 06:58:46 GMT
- Sender: news@esf.esf.de
- Reply-To: klaus@tat2.esf.de (Klaus Wicovsky)
- Organization: ESF Headquarters, Berlin, FRG
- Lines: 32
- Nntp-Posting-Host: tat2
-
- Hello,
-
- I have the following problem: I have a widget A with a callback definition.
- In the function that implements the callback, I would like to modify
- something in a different widget B, e.g. add a text string to a selection
- box. How do I access this widget B???
-
- What I tried and failed to do is this:
-
- ----------------------------------------------------------------------
- void fs_okCB(w, client_data, call_data)
- ...
- ...
- text=XmSelectionBoxGetChild (w, XmDIALOG_TEXT);
- filename=XmTextGetSelection(text);
- ...
- list = XmSelectionBoxGetChild (selected, XmDIALOG_LIST_LABEL);
- ----------------------------------------------------------------------
-
- Whenever this callback procedure is carried out, my application crashes at
- the last line. "w" would be my original widget for which I define this callback
- and "selected" would be my new widget, which would like to modify.
-
- Although "selected" is globally defined, the last statement crashes my
- application. Any idea why this could happen ???
- --
- Klaus Wicovsky
-
- ESF Headquarters Tel : ++49+30-820 903 47
- Hohenzollerndamm 152 Fax : ++49+30-820 903 19
- 1000 Berlin 33 UUCP: klaus@esf.de
- Germany
-