home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / windows / x / 20181 < prev    next >
Encoding:
Text File  |  1992-12-14  |  640 b   |  22 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!news.edu.tw!sparc4.ncu.edu.tw!ba!u438813
  3. From: u438813@ba.ncu.edu.tw (Lin Wei-Ting)
  4. Subject: Let the pointer still in a window.
  5. Message-ID: <1992Dec14.124847.24626@sparc4.ncu.edu.tw>
  6. Sender: news@sparc4.ncu.edu.tw
  7. Reply-To: u438813@ba.ncu.edu.tw
  8. Organization: Sun Microsystems, Inc.
  9. Date: Mon, 14 Dec 1992 12:48:47 GMT
  10. Lines: 10
  11.  
  12.  
  13. I want the pointer still in a window.
  14. I tried to do this.
  15.     if(event_action(event) == LOC_WINEXIT)
  16.         {
  17.         x=event_x(event);
  18.         y=event_y(event);
  19.         XWarpPointer(theDisplay,None,xwin,0,0,0,0,x,y);
  20. But it cannot work.
  21. How to do ?
  22.