RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.PaletteChanged Method

Responds to changes in the system's palette by realizing the control's palette as returned from GetPalette.

Pascal
function PaletteChanged(Foreground: Boolean): Boolean; override;
C++
virtual __fastcall Boolean PaletteChanged(Boolean Foreground);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!