Top Document: Motif FAQ (Part 6 of 9) Previous Document: 183) How can I disable the button 3 grab if I am not using popup Next Document: 185) What are the known bugs in popup menus? See reader questions & answers on this topic! - Help others by sharing your knowledge [Last modified: August 92] Answer: The original goal of popupMenus was that the user would not have to specify an event handler to manage popupMenus; however, that did not become reality. Larry Rogers wrote: > There appear to be two ways to manage popup menus. I > am curious what the correct way would be: 1. Change the translation table of the widget with the popup child to popup the menu. Note that this does not currently working for many widgets, because aug- menting their translations, even for augment breaks the widget. 2. Add an event handler at creation to the widget; then determine if the event that caused the event handler to be called is the current button being used by the menu as its activation button. Susan Murdock Thompson (from OSF) replied: *Theoretically, you should be able to do both.* Our documentation says use event handlers. Our tests for the toolkit use event handlers and for UIL use translations. (Although I tried an event handler with a UIL test and it works). User Contributions:Top Document: Motif FAQ (Part 6 of 9) Previous Document: 183) How can I disable the button 3 grab if I am not using popup Next Document: 185) What are the known bugs in popup menus? 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: