home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14213 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.2 KB  |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!caen!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!jnippa
  3. From: jnippa@magnus.acs.ohio-state.edu (Jean Nippa)
  4. Subject: Highlighting question
  5. Message-ID: <1992Aug19.185054.11922@magnus.acs.ohio-state.edu>
  6. Followup-To: jnippa@magnus.acs.ohio-state.edu
  7. Summary: Highlighting question
  8. Sender: news@magnus.acs.ohio-state.edu
  9. Nntp-Posting-Host: top.magnus.acs.ohio-state.edu
  10. Organization: The Ohio State University
  11. Date: Wed, 19 Aug 1992 18:50:54 GMT
  12. Lines: 20
  13.  
  14. I am trying to hilite (white -> yellow) a rectangle in the active window
  15. of a THINK C 5.0 application (Mac II, 256 color). The following code (based
  16. on Inside Mac volume V, p. 61) seemed to work fine in System 6, but does
  17. not work reliably in System 7. In particular, it works if single stepped
  18. through in the debugger, but not if run straight through.
  19.  
  20.     HiliteColor( &yellowRGBColor );
  21.     RGBBackColor( &whiteRGBColor );
  22.     HiliteMode &= (unsigned char)0x7F;
  23.     InvertRect( &theRect );
  24.  
  25. I have noticed that occasionally the rectangle will flash yellow briefly
  26. when the window is being closed later.
  27.  
  28. Any ideas? Thanks!
  29.  
  30.  
  31. Jean Nippa
  32. jnippa@magnus.acs.ohio-state.edu
  33.  
  34.