michael@parns.nsc.com (Michael C. Wagnitz) (11/11/89)
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. I've read the X Intrinsics manual which states (in Chapter 10.4) that you can do something along these lines using Accelerators, but without an example the description in the manual appears vague.
kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (11/14/89)
> 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