home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!usc!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!mouse
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Subject: Re: Finding the current cursor
- Message-ID: <1992Jul25.110619.8548@thunder.mcrcim.mcgill.edu>
- Organization: McGill Research Centre for Intelligent Machines
- References: <1992Jul22.161928.19371@andersen.co.uk> <1992Jul23.141226.19607@rchland.ibm.com>
- Date: Sat, 25 Jul 92 11:06:19 GMT
- Lines: 18
-
- In article <1992Jul23.141226.19607@rchland.ibm.com>, shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall) writes:
- > In article <1992Jul22.161928.19371@andersen.co.uk>, you write:
- >> During an application I need to change the cursor, I do this with
- >> XdefineCursor. I would like to be able to store the original cursor
- >> so that I can change it back.
- > I don't think you need to store the original cursor at all; instead,
- > store your new cursor. Then, when you're done, undefine the new
- > cursor. The original cursor is automagically restored.
-
- This doesn't restore the original cursor per se; rather, it causes the
- window to use its parent's cursor. This may or may not be what the
- cursor was before the XDefineCursor call was made; it is equivalent to
- assuming the original cursor was None.
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-