home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!utcsri!torn!ryelect!elf
- From: elf@ee.ryerson.ca (luis fernandes)
- Subject: Re: Accelerator problems....
- Message-ID: <1992Nov6.175517.4261@ee.ryerson.ca>
- Sender: news@ee.ryerson.ca
- Nntp-Posting-Host: brundel
- Organization: Ryerson Polytechnical Institute, Toronto
- References: <1992Nov6.135151.28276@dcs.warwick.ac.uk>
- Date: Fri, 6 Nov 1992 17:55:17 GMT
- Lines: 27
-
- robin@dcs.warwick.ac.uk (Robin A Rainton) writes:
- >The problem is I cann't get the Athena command widget to respond to keyboard
- >events by using accelerators.
- >
- >I have a form widget which holds a number of buttons and labels, the parent of
- >the form widget is the toplevel application.
- >
- >I try to install the accelerators with:
- >
- > XtInstallAllAccelerators(form, form);
-
- Try using your top-level widget as destination; it just may be
- that the events aren't propagating to the appropriate widgets.
-
- i.e. XtInstallAllAccelerators(topLevel, form);
-
- If this doesn't work, then try installing accelerators for each
- widget specifically whose actions you wish to augment.
-
- XtInstallAccelerators(form, button1);
- XtInstallAccelerators(form, button2);
- :
- :
- etc.
-
- --
- luis fernandes <elf@ee.ryerson.ca>
-