home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20847 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.1 KB

  1. Path: sparky!uunet!charon.amdahl.com!amdahl!key!kristine
  2. From: kristine@key.COM (Kristine Nam)
  3. Newsgroups: comp.windows.x
  4. Subject: xview: accelerator keys
  5. Message-ID: <3961@key.COM>
  6. Date: 6 Jan 93 18:39:56 GMT
  7. Organization: Amdahl Corporation, Advanced Systems, Fremont CA
  8. Lines: 26
  9.  
  10. I'm having problems implementing window-level accelerators in a xview application.
  11. Following the example of accelerating a PANEL_BUTTON provided XView Programming
  12. Manual(Volume 7 of O'Reilly, pg 145-146), I added the following line of code:
  13.  
  14.     xv_set(frame,
  15.            FRAME_ACCELERATOR, "q", quitWindow, quit_button,
  16.            NULL);
  17.  
  18. According to the book, the function quitWindow() should get called when
  19. 'q' is pressed combined with the Meta key.  But that isn't happening.
  20. It just beeps when I do so.
  21.  
  22. I've also tried to implement it using FRAME_X_ACCELERATOR instead:
  23.  
  24.     xv_set(frame,
  25.            FRAME_X_ACCELERATOR, XK_Return, quitWindow, quit_button,
  26.            NULL);
  27. However, this doesn't work either.
  28.  
  29. Can someone also recommend any books on XView besides O'Reilly's Volume 7?
  30.  
  31. Direct replies to kristine@key.amdahl.com will be appreciated.
  32.  
  33. Thank you.
  34.  
  35. Kristine Nam
  36.