Article View: comp.sys.sun
Article #11407Catching kbd input in a canvas
From: Per Lindberg
Date: Thu, 09 Mar 1989 04:22
Date: Thu, 09 Mar 1989 04:22
21 lines
1269 bytes
1269 bytes
This is a follow-up on my prevoius question about kbd input in canvas. My
problem was that I wanted to catch keyboard text in a canvas, but still
have the Expose (L5) and Open (L7) keys work on the frame. I tried the
following, which losed:
WIN_CONSUME_PICK_EVENT, WIN_LEFT_KEYS,
WIN_CONSUME_KBD_EVENT, WIN_ASCII_EVENTS,
Ray Kreisel (mond@sun.com) came up with a winning incantation. Try:
WIN_CONSUME_PICK_EVENTS, WIN_NO_EVENTS,MS_LEFT,
LOC_DRAG,LOC_MOVE,
WIN_IN_TRANSIT_EVENTS,
WIN_UP_EVENTS,
0,
WIN_CONSUME_KBD_EVENTS, WIN_ASCII_EVENTS,WIN_LEFT_KEYS,
0,
Thanks, Ray!
/Per Lindberg (the mad programmer)
Technical Details
Message-ID:
<361@front.se>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: mcvax!front.se!per@uunet.uu.net (Per Lindberg) Newsgroups: comp.sys.sun Subject: Catching kbd input in a canvas Keywords: Windows Message-ID: <361@front.se> Date: 9 Mar 89 04:22:42 GMT Sender: usenet@rice.edu Organization: Front Capital Systems, Stockholm, Sweden Lines: 21 Approved: Sun-Spots@rice.edu Original-Date: 1 Mar 89 11:30:12 GMT X-Sun-Spots-Digest: Volume 7, Issue 189, message 6 of 17