Top Document: Motif FAQ (Part 9 of 9) Previous Document: 328) How can I dump my widget instance tree in a way that reflects Next Document: 330) Can I set the foreground and background colors of gadgets See reader questions & answers on this topic! - Help others by sharing your knowledge [Last modified: July 96] Answer: Get events from the gadget's parent. Ken Lee A related question is "How the name of a gadget an event is directed to?" Daniel Dardailler (daniel@x.org) writes: Motif 2.0 provides a XmObjectAtPoint public function that support this functionality. For earlier version, something like the undocumented _XmInputInGadget( wid, x, y ) should do it. _XmInputInGadget Given a composite widget and an (x, y) coordinate, see if the (x, y) lies within one of the gadgets contained within the composite. Return the gadget if found, otherwise return NULL. User Contributions:Top Document: Motif FAQ (Part 9 of 9) Previous Document: 328) How can I dump my widget instance tree in a way that reflects Next Document: 330) Can I set the foreground and background colors of gadgets Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page [ Usenet FAQs | Web FAQs | Documents | RFC Index ] Send corrections/additions to the FAQ Maintainer: kenton@rahul.net (Ken Lee)
Last Update March 27 2014 @ 02:11 PM
|
Comment about this article, ask questions, or add new information about this topic: