home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18615 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.2 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!ub!dsinc!netnews.upenn.edu!netnews.noc.drexel.edu!king.mcs.drexel.edu!udmorrow
  2. From: udmorrow@mcs.drexel.edu (Daniel Morrow)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Hilite a Rect
  5. Keywords: color, hilite, novice
  6. Message-ID: <1992Nov19.000919.29727@mcs.drexel.edu>
  7. Date: 19 Nov 92 00:09:19 GMT
  8. References: <1e9v71INNgqn@agate.berkeley.edu> <19386@ucdavis.ucdavis.edu>
  9. Organization: Drexel University
  10. Lines: 27
  11.  
  12. In article <19386@ucdavis.ucdavis.edu> cklarson@burrito.engr.ucdavis.edu (Christopher Klaus Larson) writes:
  13. >In article <1e9v71INNgqn@agate.berkeley.edu> bfoley@obelisk.berkeley.edu (Brian Foley) writes:
  14. >>
  15. >>How do you hilite a rect using the current hilite color?
  16. >>I am using InvertRect() now, but it would be "better" to do it
  17. >>in color.  Inside Mac is rather vague on the subject I tried using 
  18. >>
  19. >>BitClr ((Ptr) HiliteMode, pHiliteBit);  /* IM V-61 */
  20. >>
  21. >
  22. >If you are using THINK C >= 5.0, the variable HiliteMode contains the 
  23.  
  24. (some stuff deleted, then) Try this:
  25. >
  26. >    *((char *)0x0938) &= 0x7F;
  27. >
  28. >    or
  29. >
  30. >    HiliteMode &= 0x7F; (THINK C only)
  31. >
  32.  
  33. I use Think 5.0 and all I do is say:
  34.     BitClr(&HiliteMode, pHiliteBit);
  35.  
  36. This works quite nicely.
  37.  
  38. -Dan.
  39.