home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- 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
- From: valerio@cpsc.ucalgary.ca (Valerio Franceschin)
- Subject: Problems with NSetPalette and SetWindowPic
- Message-ID: <Bu2y1p.6tw@cpsc.ucalgary.ca>
- Sender: news@cpsc.ucalgary.ca (News Manager)
- Organization: University of Calgary Computer Science
- Date: Sat, 5 Sep 1992 00:44:12 GMT
- Lines: 19
-
-
- I have some problems with NSetPalette and SetWindowPic:
-
- 1) I'm using NSetPalette to attach a palette to a window. I then want to detach
- this palette, and just set the window to black/white. I tried DisposePalette,
- and even attaching a new Palette with two entries (black/white) but the window
- still seems to be attached to the original palette. Does anyone know how I
- can set my window back to use only black/white ?
-
- 2) I am having a problem with SetWindowPic (for automatic updates). It seems
- that the window contents are being drawn twice when I first draw a picture into
- it. Also, if I scale the window, its contents are drawn twice. If I take out
- the call to SetWindowPic, this doesn't happen (however, when the window is moved
- from the back to the front, it is not updated!). Does anyone know what the
- problem could be ?
-
- Any help would be GREATLY appreciated. Please send e-mail to me directly.
-
- thanks,
-