home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / toolkits / xview / 1089 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!darkstar.UCSC.EDU!flong
  2. From: flong@cse.ucsc.edu ()
  3. Newsgroups: alt.toolkits.xview
  4. Subject: need help with keybaord focus on canvas
  5. Date: 21 Nov 1992 01:07:18 GMT
  6. Organization: University of California, Santa Cruz (CE/CIS Boards)
  7. Lines: 28
  8. Distribution: world
  9. Message-ID: <1ek246INNm8t@darkstar.UCSC.EDU>
  10. NNTP-Posting-Host: oak.ucsc.edu
  11.  
  12.  
  13. I'm having trouble getting keyboard focus on a canvas.  I consume
  14. ASCII, WINENTER, and KBD_USE events, but it seems the only consistent
  15. way to get ASCII events in a canvas is to click first.  I need to catch
  16. ASCII events all the time, not just after a click-select.  So what I
  17. tried was interposing an event function to try to set the input focus
  18. after a LOC_WINENTER.  Neither xv_set(..., WIN_SET_FOCUS,..) nor
  19. xv_set(..., WIN_KBD_FOCUS,...) seem to work.  win_set_kbd_focus() *does*
  20. work, but the window manager seems intent on sending a KBD_DONE as
  21. soon as the KBD_USE arrives.  If I change OpenWindows.SetInput in
  22. .Xdefaults to "select" instead of "followmouse" then the window
  23. manager seems to leave things alone, but I really want something that
  24. will work no matter how .Xdefaults is set up.  It seems silly that
  25. the window manager vetoes my request for input focus on a canvas; it
  26. works fine on panels.  Anybody have any ideas? Please send email to
  27. flong@cse.ucsc.edu. Basically I just need to see all keyboard (ASCII)
  28. events, no matter where the mouse pointer is.
  29.  
  30. Also, I am using notify_dispatch() instead of xv_main_loop() and when
  31. I try to "Quit" from the main frame menu, it gets rid of my windows on
  32. the screen, but it doesn't seem to destroy anything, and notify_dispatch
  33. keeps trudging along returning NOTIFY_OK....
  34.  
  35. All these things worked great in SunView, but I'm having trouble converting
  36. to XView.  Any help with these problems would be appreciated.
  37.  
  38. FL
  39.  
  40.