Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!cs.uoregon.edu!ogicse!zephyr.ens.tek.com!gvgpsa!treehouse!andyp From: andyp@treehouse.UUCP (Andy Peterman) Newsgroups: comp.sys.mac.programmer Subject: Re: Color hilite Keywords: LDEF, Color hilite Message-ID: <653@treehouse.UUCP> Date: 23 Nov 90 18:29:41 GMT References: <3170@cernvax.cern.ch> Organization: The Tree House Lines: 25 In article <3170@cernvax.cern.ch> marty@cernvax.cern.ch (hugues marty) writes: >I would like to know if it is safe to use this HiliteMode low-memory >global to perform color hilite. Does it work under A/UX where using >low globals should be avoided? I never found any reference to this >HiliteMode byte in IM. Is there any "official" documentation >somewhere? I've been using the low-memory HiliteMode for years in a few applications with no problems. They continue to run fine under A/UX and 7.0. In A/UX, they have somehow created a low memory global space where it's legal to at least read and, in some cases like this one, write to these globals. IMHO, I think this will be legal at least until System 8.0, which probably won't be in our lifetime :-). Check out IM vol V, page 61-62 for the "official" documentation. By the way, if you use MPW C 3.0 or newer, you can declare a function that does the bit clear with the following: void HiliteMode(void) = {0x08B8, 0x0007, 0x0938}; -- Andy Peterman | Opinions expressed treehouse!andyp@gvgpsa.gvg.tek.com | are definitely those of (916) 273-4569 | my employer!