Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!caip!cbmvax!skipper!amiga!barry From: barry@amiga.UUCP (Barry Walsh) Newsgroups: net.micro.amiga Subject: Re: Preferences structure Message-ID: <1140@amiga.amiga.UUCP> Date: Fri, 9-May-86 21:34:42 EDT Article-I.D.: amiga.1140 Posted: Fri May 9 21:34:42 1986 Date-Received: Sun, 11-May-86 04:03:14 EDT References: <987@masscomp.UUCP> <220@cbmvax.cbmvax.cbm.UUCP> Reply-To: barry@starship.UUCP (Barry Walsh) Distribution: net Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 37 In article <220@cbmvax.cbmvax.cbm.UUCP> randy@cbmvax.UUCP (Randy Weiner) writes: >In article <987@masscomp.UUCP> garyo@masscomp.UUCP (Gary Oberbrunner) writes: >>It seems that every time I turn around, I'd like to do some neat little >>hack having to do with changing the currently active Preferences >>structure. Like for instance an animated pointer, or one that changes >>to something else when my window is active, or whatever. >> >>...how come there's no equivalent SetPrefs()?... >>How 'bout it, C-A? Can we >>have SetPrefs()? Would it be so hard? > How 'bout it Gary. There already IS a SetPrefs function in V1.1. >Read the Intuition Manaul, Appendix C. > The SetPrefs function was intended to be used only by Preferences. The function is used by Preferences to set all of the system defaults. The reason that this function has not been given great publicity is that I don't want application programs to call it without the user requesting the changes.These defaults are provided for the user to set. This function will not let you change a pointer to something else when your window is active.To do that you should look at the SetPointer function in the Intuition Manual. The overhead of the SetPrefs function is very high because it sets all of the defaults every time that you call it.This means that you may not find it to be effective for animating the pointer. If however you feel that you must use it, ALWAYS use GetPrefs to read the data that you are not setting. NEVER call SetPrefs with a size greater than sizeof(struct Preferences). NEVER touch the 'padding' bytes unless you are sure that you know what they are used for. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::