home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 21891 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.7 KB

  1. 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
  2. From: absurd@apple.apple.com (Tim Dierks, software saboteur)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Hiliting with the hilight color??? Problem
  5. Message-ID: <absurd-210193081343@seuss.apple.com>
  6. Date: 21 Jan 93 16:12:49 GMT
  7. References: <pcw.727626961@digex>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: MacDTS Marauders
  11. Lines: 31
  12.  
  13. In article <pcw.727626961@digex>, pcw@access.digex.com (Peter Wayner)
  14. wrote:
  15. > I've been having problems with hilighting some text using
  16. > the hilighting color. If I use the InvertRect command without
  17. > doing anything, then it is possible to toggle between regular
  18. > black on white text and inverted white on black text with
  19. > a single call to InvertRect. 
  20. > If I clear the top bit of the right part of the toolbox memory,
  21. > then I get a perfect result the first time I call InvertRect.
  22. > The text goes from black on white to black on hilight color. But
  23. > on the second call when I try to revert the text to normal, it turns
  24. > black. 
  25. > What's the trick? Why isn't it toggling?
  26. > Any help would be much apprciated. Thanks....
  27. > Peter Wayner
  28. > (pcw@access.digex.com)
  29.  
  30. If you're using the HiliteMode low memory global, you need to turn it
  31. on before each and every invert call you make; it will turn itself off.
  32. In essence, it's just a flag to say "Make the next invert call hilite".
  33. If you want a more permanent solution (also good because it doesn't use
  34. low memory globals), just use the hilite transfer mode; it will do
  35. the hiliting for you and it won't turn off.
  36.  
  37. Tim Dierks
  38. MacDTS, but I speak for myself
  39.