Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!caen!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!ub!dsinc!widener!news.cs.indiana.edu!spool.mu.edu!samsung!usc!apple!voder!pyramid!unify!openlook!openlook-request From: openlook-request@openlook Newsgroups: comp.windows.open-look Subject: Re: Key accelerators in Opeook ? Message-ID: Date: 20 May 91 18:01:56 GMT Lines: 32 > I am currently designing an application with XView. I have worked with the > Mac and Windows 3.0 GUIs, but I really like the way Windows 3.0 supports > keyboard accelerators. > ... > How can I accomplish this in OpenLook. The following doesn't answer your question, because you asked about XView. Still, for those who are using OLIT.... In OpenWindows 2.5 the OPEN LOOK Intrinsics Toolkit (OLIT) supports ``accelerators'' and ``mnemonics''. The latter are what the person quoted above is asking for--mnemonics are shown as a single underlined character of the control's label (or a letter in parentheses if the mnemonic isn't in the label). Pressing ALT+menmonic activates the control as if SELECT was clicked on the control. Accelerators are similar, but (1) are a client-supplied arbitrary key sequence (e.g. Alt-Ctrl-m), and (2) are shown to the right of the label, in a human-readable form of the modified keystroke (Alt+Ctrl+m in this example). One other difference: Accelerators are global to a client (no two controls can have the same accelarator), while mnemonics are local to a shell window. One specifies a mnemonic with the XtNmnemonic resource, an accelerator with the XtNaccelerator resource. The value of the first should be a single character (don't include the ALT), the value of the second should be a single key-event, as in this example: Alt Ctrl Steve Humphrey UNIX System Laboratories