home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!convex!darwin.sura.net!news.larc.nasa.gov!uakari.primate.wisc.edu!ames!agate!tfs.com!tfs.com!matt
- From: matt@tfs.com (Matthew Hom)
- Newsgroups: comp.windows.x
- Subject: Escape and Tab keys to modal dialog?
- Keywords: motif dialog translations
- Message-ID: <1992Aug26.000834.14081@tfs.com>
- Date: 26 Aug 92 00:08:34 GMT
- References: <1992Aug25.220652.2266@news.nd.edu>
- Sender: matt@tfs.com
- Followup-To: poster
- Distribution: comp.windows.x.intrinsics comp.windows.x.motif
- Organization: TRW Financial Systems
- Lines: 47
-
- I'm using Wcl and Motif in my X Window keying application. If anyone
- can shed any light on this, I'd appreciate it. Thanks.
-
- Our customer has requested a change in key assignments for the keying
- application. One of the changes involves mapping the Escape key and
- the Tab key. I've been using the key accelerator in the pulldown menus
- as a convenient mechanism for doing this. The customer also wants
- alternative keys to cause the same action (i.e. F9 and Shift+9). I use
- translation tables to augment certain widgets by mapping these
- alternative key sequences to activate callbacks for the corresponding
- buttons in the pulldown menu.
-
- Everything works fine except when my application modal dialogs are managed.
- I augment the translations of the dialog to map certain key sequences
- to my callbacks. The key sequences work for most keys except for Tab
- and Escape. How come? Are these being consumed by the dialog? I tried
- to override the translations for the dialog or list widget but I loose
- to much functionality in the list widget (arrow keys, CR, etc.).
-
- *ListDialog*Translations: #augment\n\
- Ctrl<Key>Q: TfsActionActivateCallbacks( *QuitBtn ) \n \
- Alt<Key>Left: WcUnmanageACT( *ListDialog ) TfsActionPrevImage() \n\
- Alt<Key>Right: WcUnmanageACT( *ListDialog ) TfsActionNextImage() \n\
- <Key>Tab: TfsActionActivateCallbacks( *OopsBtn ) \n\
- <Key>Escape: WcUnmanageACT( *ListDialog ) TfsActionActivateCallbacks( *PassBtn ) \n\
- <Key>: TfsActionSelectListItem( *Number*Field1 )
-
- The widget hierarchy for this dialog is"
-
- Form Dialog Widget
- List Widget
-
- Is there a resource that I can set to allow Tab and Escape to get through
- to my action procedures? I tried to augment the translations on the parent
- of the ListDialog (ListDialog_popup) as well, but that has no effect.
-
- Please send responses to matt@tfs.com.
-
- --
- +-----------------------------------------------------------------------+
- | These are my opinions and are not necessarily those of my employer. |
- +-----------------------------------------------------------------------+
- | Matt Hom matt@tfs.com |
- | TRW Financial Systems (310)590-7510 |
- | 200 Oceangate, Suite 1000 |
- | Long Beach, CA 90802-4336 |
- +-----------------------------------------------------------------------+
-