Top Document: Motif FAQ (Part 8 of 9) Previous Document: 287) How can I disable the color scheme mechanism in CDE or HP VUE? Next Document: 289) Where is the editres protocol documented? See reader questions & answers on this topic! - Help others by sharing your knowledge [Last modified: Mar 96] Answer: Editres, part of the MIT delivery, is a powerful widget tree analysis tool and is highly recommended. There's negligible overhead in making editres available to an application and many projects keep the editres "hook" active even for operational programs. It isn't built in to Motif (at 1.2.*), but you can do this in your application: #include <X11/Xmu/Editres.h> XtAddEventHandler(shell_widget, (EventMask) 0, True, (XtEventHandler) _XEditResCheckMessages, NULL); once for each shell widget that you want to react to the "click to select client" protocol. Then link your client with the R5 libXmu. Thanks to David Brooks, OSF, for the original answer. Jan Sandquist (ehsjasa@ehs.ericsson.se) supplied the current code snipet above. Joachim Fabini (jo@vmars.tuwien.ac.at) suggested that I remove the older use of "extern void _XEditResCheckMessages()" which resulted in core dumps on some platforms. NOTE: Ken Lee has placed his November, 1994 editres tutorial on the Web: http://www.rahul.net/kenton/editres.html User Contributions:Top Document: Motif FAQ (Part 8 of 9) Previous Document: 287) How can I disable the color scheme mechanism in CDE or HP VUE? Next Document: 289) Where is the editres protocol documented? 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: