Important: The information in this document is obsolete and should not be used for new development.
NSetPalette
Associates a new palette with a window; identical to theSetPalettefunction (page 1-11) except that thenCUpdatesparameter is an integer rather than a Boolean value, so that a variety of conditions can trigger an update event.
pascal void NSetPalette( WindowPtr dstWindow, PaletteHandle srcPalette, short nCUpdates);
dstWindow- A pointer to the window to which you want to assign a new palette.
srcPalette- A pointer to the palette you want to assign.
nCUpdates- An integer value in which you specify whether the window is to receive updates as a result of various changes to the color environment. See "Update Constants" (page 1-4) for a description of the update options.
DISCUSSION
NSetPalettechanges the palette associated with the window specified in thedstWindowparameter to the palette specified bysrcPalette.NSetPalettealso records whether the window is to receive updates as a result of changes to its color environment. The update constants, which you pass to thenCUpdatesparameter, determine when the window is updated.
- IMPORTANT
- The
NSetPalettefunction is available in system software versions 6.0.2 and later.![]()
SEE ALSO
Use theSetPalettefunction (page 1-11) if you don't need the flexibility thatNSetPaletteprovides for update events.Use the
GetNewPalettefunction (page 1-8) or theNewPalettefunction (page 1-9) to create a new palette.To dispose of a palette, use the
DisposePalettefunction (page 1-10).