Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!stroyan From: stroyan@hpfcdc.HP.COM (Mike Stroyan) Newsgroups: comp.windows.x Subject: Re: Finding Cursor associat. with a Window Message-ID: <6910003@hpfcdc.HP.COM> Date: 3 Mar 89 04:45:49 GMT References: <8902270544.AA00187@ATHENA.MIT.EDU> Organization: HP Ft. Collins, Co. Lines: 19 > I need to find out what the cursor is for a window in order > to restore it to its value later since I want to change the cursor > temporarily with XdefineCursor(). > Any hope ? Not much. The normal protocol does not provide a way to inquire the current cursor of a window. At HP we ended up adding a server extension to inquire the data. That helps our graphics libraries when run on our servers, but won't do for a portable application. One possibility is to create an InputOnly child window that covers the window for which you want to change the cursor. You can then specify the cursor for the new window. When you want to return to the old cursor, you destroy the child window. There may be some trouble if the child window has to adapt to parent window resizes or fight with its sibling windows to stay on top. Mike Stroyan, stroyan@hpfcla.hp.com