home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!caen!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!jnippa
- From: jnippa@magnus.acs.ohio-state.edu (Jean Nippa)
- Subject: Highlighting question
- Message-ID: <1992Aug19.185054.11922@magnus.acs.ohio-state.edu>
- Followup-To: jnippa@magnus.acs.ohio-state.edu
- Summary: Highlighting question
- Sender: news@magnus.acs.ohio-state.edu
- Nntp-Posting-Host: top.magnus.acs.ohio-state.edu
- Organization: The Ohio State University
- Date: Wed, 19 Aug 1992 18:50:54 GMT
- Lines: 20
-
- I am trying to hilite (white -> yellow) a rectangle in the active window
- of a THINK C 5.0 application (Mac II, 256 color). The following code (based
- on Inside Mac volume V, p. 61) seemed to work fine in System 6, but does
- not work reliably in System 7. In particular, it works if single stepped
- through in the debugger, but not if run straight through.
-
- HiliteColor( &yellowRGBColor );
- RGBBackColor( &whiteRGBColor );
- HiliteMode &= (unsigned char)0x7F;
- InvertRect( &theRect );
-
- I have noticed that occasionally the rectangle will flash yellow briefly
- when the window is being closed later.
-
- Any ideas? Thanks!
-
-
- Jean Nippa
- jnippa@magnus.acs.ohio-state.edu
-
-