home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!data.nas.nasa.gov!taligent!apple!goofy!mumbo.apple.com!gallant.apple.com!seuss.apple.com!user
- From: absurd@apple.apple.com (Tim Dierks, software saboteur)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Hiliting with the hilight color??? Problem
- Message-ID: <absurd-210193081343@seuss.apple.com>
- Date: 21 Jan 93 16:12:49 GMT
- References: <pcw.727626961@digex>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.programmer
- Organization: MacDTS Marauders
- Lines: 31
-
- In article <pcw.727626961@digex>, pcw@access.digex.com (Peter Wayner)
- wrote:
- >
- > I've been having problems with hilighting some text using
- > the hilighting color. If I use the InvertRect command without
- > doing anything, then it is possible to toggle between regular
- > black on white text and inverted white on black text with
- > a single call to InvertRect.
- >
- > If I clear the top bit of the right part of the toolbox memory,
- > then I get a perfect result the first time I call InvertRect.
- > The text goes from black on white to black on hilight color. But
- > on the second call when I try to revert the text to normal, it turns
- > black.
- >
- > What's the trick? Why isn't it toggling?
- >
- > Any help would be much apprciated. Thanks....
- >
- > Peter Wayner
- > (pcw@access.digex.com)
-
- If you're using the HiliteMode low memory global, you need to turn it
- on before each and every invert call you make; it will turn itself off.
- In essence, it's just a flag to say "Make the next invert call hilite".
- If you want a more permanent solution (also good because it doesn't use
- low memory globals), just use the hilite transfer mode; it will do
- the hiliting for you and it won't turn off.
-
- Tim Dierks
- MacDTS, but I speak for myself
-