Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!milton!gibdo!slh From: slh@gibdo.engr.washington.edu Newsgroups: comp.windows.x.motif Subject: Re: Gadgets and Events Summary: No Message-ID: <1991Apr23.022507.18326@gibdo.engr.washington.edu> Date: 23 Apr 91 02:28:57 GMT References: Sender: news@milton.u.washington.edu (News) Reply-To: slh@gibdo.engr.washington.edu (PUT YOUR NAME HERE) Organization: zippity Lines: 18 In article roger@zuken.co.jp (Roger Meunier) writes: |Is there some way to use XtAddEventHandler() or XtAddRawEventHandler() |with gadgets? I tried installing a ButtonPressMask event handler in a |XmCreatePushButtonGadget, and was surprised at the results. |It wouldn't even handle exposure events after that! | There are several things you can't have with gadgets, including event handlers and translations. |Does someone know a trick I can use to emulate event handling (or |translations) for a gadget? Or am I asking too much? I know that |the behavior is being managed somewhere; is there some way to modify |this behavior? | You have to do stuff from the parent, keeping track of the children there. So, for example, if you wanted to do something when the pointer entered the gadget, you'd do event handling in the parent and check for the pointer being in the gadgets extent.