Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!caip!cbmvax!randy From: randy@cbmvax.cbm.UUCP (Randy Weiner) Newsgroups: net.micro.amiga Subject: Re: Preferences structure Message-ID: <220@cbmvax.cbmvax.cbm.UUCP> Date: Fri, 9-May-86 09:15:07 EDT Article-I.D.: cbmvax.220 Posted: Fri May 9 09:15:07 1986 Date-Received: Sun, 11-May-86 03:37:53 EDT References: <987@masscomp.UUCP> Reply-To: randy@cbmvax.UUCP (Randy Weiner) Distribution: net Organization: Commodore Technology, West Chester, PA Lines: 44 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? > >`Imagination is more important - Gary Oberbrunner >than knowledge.' - Einstein ...{harvard,allegra}!masscomp!garyo How 'bout it Gary. There already IS a SetPrefs function in V1.1. Read the Intuition Manaul, Appendix C. SetPrefs(Preferences, Size, RealThing) where: Preferences -- a pointer to a Preferences structure. Size -- the number of bytes contained in your Preferences structure. Typically, you will use "sizeof(struct Preferences)" for this arg. RealThing -- a Boolean TRUE or FALSE designating whether or not this is an intermediate or final version of the Preferences. The difference is that final changes to Intuition's preferences causes a global broadcast of NEWPREFS events to everyone who's listening for this event. Intermediate change may be used, for instance, to update the screen colors while the user is playing with the color gadgets. Even though it is not listed in the body of the Intuition Manual, it should be accessible through "intuition.library". When opening this library, the revision number must be 31 (this routine was not available under v1.0, i.e. rev30 libs). -- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Randy Weiner -- Commodore Business Machines <> uucp: {ihnp4|seismo|caip}!cbmvax!randy arpa: cbmvax!randy@seismo.css.GOV (or) randy@cbmvax.UUCP@{seismo | harvard} TEL: 215-431-9180