Vcl.Buttons.TSpeedButton.GetPalette

From RAD Studio API Documentation

Delphi

function GetPalette: HPALETTE; override;

C++

DYNAMIC HPALETTE __fastcall GetPalette(void);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Buttons.pas
Vcl.Buttons.hpp
Vcl.Buttons TSpeedButton

Description

Returns the handle to a palette for use by the control. {{#multireplace:Vcl.Buttons.TSpeedButton.GetPalette|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Vcl.Controls.TControl.GetPalette|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Vcl.Controls.TControl.GetPalette|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Returns the handle to a palette for use by the control.

As implemented in TControl, GetPalette returns a null handle, indicating that the control does not have a palette. Override GetPalette to implement derived objects that use a palette. Create a palette handle for the control by a call to the Windows API function CreatePalette. GetPalette should return the palette handle for the control.

Specifying the palette for a control tells the application that the control's palette needs to be realized and designates the palette to use for realization.

GetPalette is called only if the run-time video mode requires color palette support, for example, in 256-color mode.

See Also