Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!bloom-beacon!ATR-8.HAC.COM!nsche From: nsche@ATR-8.HAC.COM (Norm Scherer) Newsgroups: comp.windows.x Subject: RE: Problem with Xw toggle and RowCol widgets Message-ID: <8908151721.AA02192@atr-8.hac.com> Date: 15 Aug 89 17:21:12 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 28 > What I am trying to do is to have the set of toggles come up with > a default selected but have it act in the same manner as if that > toggle had been selected by the user. Christopher A. Rath (car@melmac.att.com) was so kind as to provide the correct answer to the problem which I will give here for anyone else who is as puzzled as I. >>In order for the Xw row column widget to notice that a toggle has >>been set, the XtNselect callbacks of the toggle must be called as >>well as setting XtNset to True. >>i.e. >>... >>XtSetArg(args[n], XtNset, (XtArgVal)True) n++; >>XtSetValues(toggle, args, n); >>XtCallCallbacks(toggle, XtNselect, (caddr_t)0); Works like a charm! Thanks... Norm Scherer Software Engineering Division Hughes Aircraft Co., Ground Systems Group, Fullerton Ca. (nsche%atr-2s@hac2arpa.hac.com or nsche@atr-2s.hac.com) Opinions are my own, not those of HAC or anyone else I have ever met