Vcl.Forms.TCustomForm.PaletteChanged
Delphi
function PaletteChanged(Foreground: Boolean): Boolean; override;
C++
DYNAMIC bool __fastcall PaletteChanged(bool Foreground);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Responds to changes in the system's palette by realizing the control's palette as returned from GetPalette.
PaletteChanged is called automatically when the system palette changes. The Foreground parameter indicates whether the palette realization should treat this control's palette as being in the foreground or the background. The return value from PaletteChanged indicates whether the form actually realized its palette, returning true only if the form has an associated palette.
Most applications should not need to alter the default behavior of PaletteChanged.