Unit ColorPalette |
************************************************** TColorPalette->TComponent Manages a 256 color logical palette. Properties BadEntries- If this palette is not an identity palette, this StringList will contain the palette entries that are responsible and require alteration. IdentityPalette- Indicates whether this palette qualifies as an identity palette. ImagePalette- Assigning this property to a TImage on the form causes the palette of the TImage to be copied into the TColorPalette. The reference to the TImage is not maintained, but the physical palette data is. PalEntryFlag- Indicates if the palette entries should be flagged as PC_NOCOLLAPSE or PC_RESERVED. The recommended setting is PC_NOCOLLPASE. Palette- The HPalette handle that corresponds to the logical palette. PaletteEntry[n]- Accesses the palette entry structure at the specified index. When modifying palette entries, call the Refresh method to regenerate the palette. PaletteEntries- In design mode brings up a property editor that allows you to manipulate the palette visually. Events Methods Refresh- Causes the logical palette to regenerate. Call this after changing PaletteEntry values.
Classes |
TColorPalette -
TColorPaletteEditor -
Functions |
Register -
Types |
Constants |
Variables |
Functions |
Types |
TPAL = record
logPalette : TLogPalette;
palpalEntry : array[0..255] of TPaletteEntry;
end;
TPalEntryFlag = ( pcNoCollapse, pcReserved );
Constants |
Variables |