Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ucbvax!BAE.BELLCORE.COM!aw From: aw@BAE.BELLCORE.COM (Andrew Wason) Newsgroups: comp.windows.x.motif Subject: Re: Problem with WCL/Motif Message-ID: <9104102119.AA11842@bellcore.bellcore.com> Date: 10 Apr 91 21:19:38 GMT References: <1991Apr10.185914.18123@elroy.jpl.nasa.gov> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 95 (Bruce Bon) writes: > *manipShell.popupCallback: myProcCB > > nothing happens -- it is as though the popupCallback resource is not > recognized at all. I have the same problem. It looks like there is a bug somewhere in there (either in the Motif VendorShell or the Intrinsics). I haven't figured it out yet. I've attached a message I posted a while ago about this problem below. acs@pcc.amdahl.com (Tony Sumrall) has been having similar problems. It seems like when an XtAddCallback is done on a callback list which has callbacks derived from resources, bad things happen. > *manipShell.wcClassName: TransientShell > *manipShell.popupCallback: WcTraceCB( manipShell.popupCallback) In this case, TransientShell is a subclass of VendorShell. The Motif VendorShell does an XtAddCallback on the XmNpopupCallback list. This somehow wipes out your callback which got there via resources. If anyone has any insight to this problem, let me know. Andrew _______________________________________________________________________________ Andrew Wason Bell Communications Research aw@bae.bellcore.com Piscataway, NJ bellcore!bae!aw _______________________________________________________________________________ ------- Forwarded Message Date: Wed, 20 Mar 91 12:46:13 -0500 From: Andrew Wason To: motif-talk%osf.org@bellcore.bellcore.com Subject: XmNpopupCallback Has anyone had any success using the Shell XmNpopupCallback resource? I can't get it to work. Here is an Mri resource file which adds a popupCallback. Mri.wcChildren: button Mri.wcPopups: popup *button.wcClassName: XmPushButton *button.activateCallback: WcPopupCB( *popup ) *popup.wcClassName: TopLevelShell *popup.popupCallback: WcSystemCB( echo popupCallback ) *popup.wcChildren: label *label.wcClassName: XmLabel The WcSystemCB callback should be called when 'popup' is popped up, but it isn't. The same setup using Athena widgets and Ari works fine: Ari.wcChildren: button Ari.wcPopups: popup *button.wcClassName: Command *button.callback: WcPopupCB( *popup ) *popup.wcClassName: TopLevelShell *popup.popupCallback: WcSystemCB( echo popupCallback ) *popup.wcChildren: label *label.wcClassName: Label I think the problem is the Motif VendorShell widget. VendorShell does an XtAddCallback on XmNpopupCallback in its Initialize method. At this point my WcSystemCB callback is already on the list, but it looks like the VendorShells callback replaces mine. Later when my shell is popped up, and _XtPopup does an XtCallCallbacks on XtNpopupCallback, there is only one callback on the list -- the VendorShells. Does anyone know how VendorShells callback could be wiping mine out? Thanks, Andrew _______________________________________________________________________________ Andrew Wason Bell Communications Research aw@bae.bellcore.com Piscataway, NJ bellcore!bae!aw ------- End of Forwarded Message