home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!amdahl!key!kristine
- From: kristine@key.COM (Kristine Nam)
- Newsgroups: comp.windows.x
- Subject: xview: accelerator keys
- Message-ID: <3961@key.COM>
- Date: 6 Jan 93 18:39:56 GMT
- Organization: Amdahl Corporation, Advanced Systems, Fremont CA
- Lines: 26
-
- I'm having problems implementing window-level accelerators in a xview application.
- Following the example of accelerating a PANEL_BUTTON provided XView Programming
- Manual(Volume 7 of O'Reilly, pg 145-146), I added the following line of code:
-
- xv_set(frame,
- FRAME_ACCELERATOR, "q", quitWindow, quit_button,
- NULL);
-
- According to the book, the function quitWindow() should get called when
- 'q' is pressed combined with the Meta key. But that isn't happening.
- It just beeps when I do so.
-
- I've also tried to implement it using FRAME_X_ACCELERATOR instead:
-
- xv_set(frame,
- FRAME_X_ACCELERATOR, XK_Return, quitWindow, quit_button,
- NULL);
- However, this doesn't work either.
-
- Can someone also recommend any books on XView besides O'Reilly's Volume 7?
-
- Direct replies to kristine@key.amdahl.com will be appreciated.
-
- Thank you.
-
- Kristine Nam
-