Sign in Join
FPDoc Onlineexperiment

TWidgetSet.SelectPalette function

Member of TWidgetSetpublicIn unit InterfaceBase

Selects a logical palette into an device context.

Declaration

pascal
function SelectPalette(DC: HDC; Palette: HPALETTE; 
 ForceBackground: Boolean): HPALETTE; virtual

Arguments

DC

The device context.

Palette

The palette to select.

ForceBackgroundTrue to select the background palette.

Function result

The handle of the previously selected palette.

Description

A foreground palette becomes the palette for the device when the application is in the foreground. A background palette instead is mapped to the closest colors in the palette for the physical device.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.