Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!batcomputer!hsgj From: hsgj@batcomputer.tn.cornell.edu (Dan Green) Newsgroups: comp.sys.amiga Subject: Re: Mouse Pointer Help Required Message-ID: <3574@batcomputer.tn.cornell.edu> Date: 4 Feb 88 00:11:44 GMT References: <168@gould.doc.ic.ac.uk> <3542@batcomputer.tn.cornell.edu> <40779@sun.uucp> Reply-To: hsgj@tcgould.tn.cornell.edu (Dan Green) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 43 Keywords: Help,Mouse Pointer In article <40779@sun.uucp> cmcmanis@sun.UUCP (Chuck McManis) writes: >In article <3542@batcomputer.tn.cornell.edu> (Dan Green) writes: >>In article <168@gould.doc.ic.ac.uk> (Peter Walkley) originally wrote: >>>My friend wants a CLEAN way of getting rid of the mouse pointer, and >>>then being able to restore it again. He's writing a demo that grabs >>>the display (i.e Ignores intuition), and wants the MP out of the way. >>> P. Walkley >> >>Here is a method I clipped out from a program of mine. It works, and I >>sure HOPE its "approved", but I don't know for sure. > >AAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHH! >So close, and yet so far away. The 'clean' approved way of changing your >pointer to ANYTHING, including 'nothing' is to use the Intuition >SetPointer call. To restore it to the original preferences set pointer >you can use the Intuition ClearPointer() call. [...] There is a reason that I recommend the Preferences method instead of the Intuition "SetPointer" command. The SetPointer command changes the mouse pointer image only in the window that you specify. While you could repeatedly call SetPointer for every window existing in the system, if someone were to click outside of any window, I believe the original pointer image would return. On the other hand, Preferences is global, and if you change the pointer image with the SetPrefs command, the mouse pointer will be your new image in EVERY window of EVERY screen on the system. For many folks, this is an extremely bad thing to do, as other tasks will look funny with the wrong pointer. Please recall, however, that for the application that was originally mentioned (a demo that takes over the system) the SetPrefs is a well-behaved command that will function even if Intuition windows are not being used. (Whether it will work if you CloseLibrary intuition is something that I don't know...). Lastly, and here I repeat Chuck McManis, if you only want the pointer to change for your window, be well behaved and use SetPointer. -- Dan Green -- ARPA: hsgj@tcgould.tn.cornell.edu UUCP: ihnp4!cornell!batcomputer!hsgj BITNET: hsgj@cornella