Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!elroy.jpl.nasa.gov!ncar!bierstadt.scd.ucar.edu!morreale From: morreale@bierstadt.scd.ucar.edu (Peter Morreale) Newsgroups: comp.windows.x Subject: Re: XWarpPointer revisited..... Message-ID: <9958@ncar.ucar.edu> Date: 17 Jan 91 03:39:09 GMT References: <9945@ncar.ucar.edu> <100920272@hpcvlx.cv.hp.com> Sender: news@ncar.ucar.edu Organization: Scientific Computing Division/NCAR, Boulder, CO Lines: 50 In article <100920272@hpcvlx.cv.hp.com> ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) writes: > >> Is it simply because the user can become confused with the visual >> effects? > >I think so. The problem is that it seriously disturbs the "direct >manipulation" paradigm. The cursor is always attached to the >mouse--moving the mouse moves the cursor. When you warp the cursor, you >have caused the cursor to move without moving the mouse. This weakens >the perception that the two are connected. > Thanks Ben, I understand. Might I ask the net community for some help in how to implement re-setting the focus in an *Xt* application? I have read the ICCCM and and understand the premise, I just am not sure how to implement it. If some kind soul could point towards specific routines/resources/etc, I would be very grateful. This is my *first* app, and quite frankly, I *could* get away with moving the pointer as the app will only be used by a very small group of users. (internally) However for my own edification, and in the interest of "doing things right", I would like to know how this is done. My basic questions are: 1) How does one set focus on the basic of a KeyPress? (ie: when RETURN is detected in window A, set focus in window B?) (Please note that I already have code which detects the RETURN, and I know from which widget the RETURN was detected) 2) What (if anything) need I account for when the user *does* manually move the mouse? (I suspect nothing, but I'm not sure...) Barring a small code excerpt, an Xt methodology would be fine. Perhaps this is simple, but from reading the X/Xt documentation, it escapes me. Thanks for any and all help... -PWM -- ------------------------------------------------------------------ Peter W. Morreale email: morreale@ncar.ucar.edu Nat'l Center for Atmos Research voice: (303) 497-1293 Scientific Computing Division