Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: Re: Configurational problem with Xt toggle widgets... Message-ID: <9012052235.AA00212@excess.lcs.mit.edu> Date: 5 Dec 90 22:35:06 GMT References: <9392@ncar.ucar.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 37 > I'm having what is probably a simple problem with the Xt toggle > widget. ( X11R4, patched to fix-18, SunOS...) > > ( Chris D. Peterson where are you?????? ;-) The collective wisdom of the net will have to supply the leadership to guide new X programmers. There is an enormous demand for my time, and Chris is very probably in a similar position. Now there are many programmers who could step in and answer questions; I encourage them to post answers. > The action function is working correctly except > that I can't seem to change the state of the toggles in the radioGroup. > I am trying to use XawToggleSetCurrent and am obviously using it incorrectly > (or I have the initial resources for the toggle group set incorrectly...) Good, right on the mark. When you create the Athena Toggle widget, you supply some radio data: > XtSetArg(arg[n], XtNradioData, "phone"); ++n; > > Type_Phone = XtCreateManagedWidget("phone", toggleWidgetClass, When you call this function, you are specifying different radio data: > XawToggleSetCurrent(Type_Mail, "phone"); The value of the radio data resource is a pointer. These two "phone" strings have different addresses. If the radio data doesn't match, this function has no effect. Donna Converse Research Staff