Xref: utzoo comp.windows.x:13521 comp.sys.hp:2927 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!think!bloom-beacon!eru!luth!sunic!bmc!kuling!irf From: irf@kuling.UUCP (Bo Thide') Newsgroups: comp.windows.x,comp.sys.hp Subject: HP List widget callback. How? Message-ID: <1172@kuling.UUCP> Date: 17 Sep 89 14:41:44 GMT Reply-To: irf@kuling.UUCP (Bo Thide') Organization: Dept. of Computer Systems, Uppsala University, Sweden Lines: 23 On the HP-UX man page XWLIST(3X) I can read: ".. The application must take over the widget's select callback in order to be notified that the item has been selected." But it doesn't seem to say explicitelty how this takeover can be accomplished. An ordinary XtAddCallback(.., XtNselect,..,..) for the list widget itself will result in "X Toolkit Warning: Cannot find callback list in XtAddCallbacks". If instead I add the callback to the individual widgets in the list (in my case static text widgets) nothing happens after a normal (Button1) select. I am sure this is trivial but I am stuck. Any help to bt@irfu.se or here would be appreciated. -Bo ^ Bo Thide'-------------------------------------------------------------- | | Swedish Institute of Space Physics, S-755 91 Uppsala, Sweden |I| [In Swedish: Institutet f|r RymdFysik, Uppsalaavdelningen (IRFU)] |R| Phone: (+46) 18-403000. Telex: 76036 (IRFUPP S). Fax: (+46) 18-403100 /|F|\ INTERNET: bt@irfu.se UUCP: ...!uunet!sunic!irfu!bt ~~U~~ -----------------------------------------------------------------sm5dfw