PmForeColor
PmForeColor
Set window's RGB and index fields with palette colors short destEntry ; a specified color value for a field
PmForeColor sets the current window's RGB and index ForeColor fields by taking the appropriate colors from the window's palette and putting them in the
specified destEntry.
destEntry is the particular field being set with the specified color from the
palette.
Notes: This routine is a way of using your window's color palette to set its own RGB
and index ForeColor fields. If the usage you want an entry to have is going to be
using the RGB color in the window's palette.
An animating color will be selected and installed from the recorded device index you've already set aside for animation, with the ForeColor field given the
same value as the palette entry. For explicit colors, a MaxIndex comprising the
largest index available in the device's color look-up table is used to calculate
( destEntry modulo ( MaxIndex+1 ) ). MaxIndex will be different for screens
with different depths when a window stretches across multiple devices and
PmForeColor will take care of the variations for you.