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