home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / x / 18812 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.2 KB  |  40 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!utcsri!torn!ryelect!elf
  3. From: elf@ee.ryerson.ca (luis fernandes)
  4. Subject: Re: Accelerator problems....
  5. Message-ID: <1992Nov6.175517.4261@ee.ryerson.ca>
  6. Sender: news@ee.ryerson.ca
  7. Nntp-Posting-Host: brundel
  8. Organization: Ryerson Polytechnical Institute, Toronto
  9. References: <1992Nov6.135151.28276@dcs.warwick.ac.uk>
  10. Date: Fri, 6 Nov 1992 17:55:17 GMT
  11. Lines: 27
  12.  
  13. robin@dcs.warwick.ac.uk (Robin A Rainton) writes:
  14. >The problem is I cann't get the Athena command widget to respond to keyboard
  15. >events by using accelerators.
  16. >
  17. >I have a form widget which holds a number of buttons and labels, the parent of
  18. >the form widget is the toplevel application.
  19. >
  20. >I try to install the accelerators with:
  21. >
  22. >    XtInstallAllAccelerators(form, form);
  23.  
  24. Try using your top-level widget as destination; it just may be
  25. that the events aren't propagating to the appropriate widgets.
  26.  
  27. i.e. XtInstallAllAccelerators(topLevel, form);
  28.  
  29. If this doesn't work, then try installing accelerators for each
  30. widget specifically whose actions you wish to augment.
  31.  
  32.     XtInstallAccelerators(form, button1);
  33.     XtInstallAccelerators(form, button2);
  34.     :
  35.     :
  36.     etc.
  37.  
  38. --
  39. luis fernandes  <elf@ee.ryerson.ca>
  40.