Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: X11 commandWidget highlight question Message-ID: <8911131649.AA20585@expo.lcs.mit.edu> Date: 13 Nov 89 16:49:02 GMT References: <152@harley.nsc.com> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 24 > I should like to know if it is possible to invoke a commandWidget's highlight > action on a button, from within another widget's callback procedure? I would > like to highlight one 'button' in my application program whenever this other > widget has been told to execute its callback list. In R3 there isn't any convenient way to do this, short of the sort of hack that I described in my previous posting this morning, which would involve doing the drawing yourself. In X11R4 there is a routine that has been added to let you call a widget's action proceedures from an application. This way you can call the highlight and unhighlight actions on Command button B from an action routine invoked by Command button A, provided that you have the widget ID of button B. No, R4 isn't out yet, we are still looking for release "late this year". Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213