home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15139 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.4 KB  |  30 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!alberta!cpsc.ucalgary.ca!valerio
  3. From: valerio@cpsc.ucalgary.ca (Valerio Franceschin)
  4. Subject: Problems with NSetPalette and SetWindowPic
  5. Message-ID: <Bu2y1p.6tw@cpsc.ucalgary.ca>
  6. Sender: news@cpsc.ucalgary.ca (News Manager)
  7. Organization: University of Calgary Computer Science
  8. Date: Sat, 5 Sep 1992 00:44:12 GMT
  9. Lines: 19
  10.  
  11.  
  12. I have some problems with NSetPalette and SetWindowPic:
  13.  
  14. 1) I'm using NSetPalette to attach a palette to a window. I then want to detach
  15. this palette, and just set the window to black/white.  I tried DisposePalette,
  16. and even attaching a new Palette with two entries (black/white) but the window
  17. still seems to be attached to the original palette.  Does anyone know how I
  18. can set my window back to use only black/white ?
  19.  
  20. 2) I am having a problem with SetWindowPic (for automatic updates).  It seems
  21. that the window contents are being drawn twice when I first draw a picture into
  22. it.  Also, if I scale the window, its contents are drawn twice.  If I take out
  23. the call to SetWindowPic, this doesn't happen (however, when the window is moved
  24. from the back to the front, it is not updated!).  Does anyone know what the
  25. problem could be ?
  26.  
  27. Any help would be GREATLY appreciated.  Please send e-mail to me directly.
  28.  
  29. thanks,
  30.