Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!kogwy!new1!roger From: roger@zuken.co.jp (Roger Meunier) Newsgroups: comp.windows.x.motif Subject: Re: Gadgets and Events Message-ID: Date: 24 Apr 91 05:41:11 GMT References: <1991Apr23.022507.18326@gibdo.engr.washington.edu> Sender: news@new1.zuken.co.jp Organization: ZUKEN Inc. Yokohama, JAPAN Lines: 22 In-reply-to: slh@gibdo.engr.washington.edu's message of 23 Apr 91 02:28:57 GMT In article <1991Apr23.022507.18326@gibdo.engr.washington.edu> slh@gibdo.engr.washington.edu writes: I wrote: > |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? to which Some Kind Soul replied: > 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. That's basically the lead that I need. Thanx! Now, one more quick question: is there some way to alter the behavior of the XmManager widget which has the Gadget as a child, e.g., through resources? -- Roger Meunier @ Zuken, Inc. Yokohama, Japan (roger@zuken.co.jp)