Sign in Join
FPDoc Onlineexperiment

TWidgetSet.GetStockObject function

Member of TWidgetSetpublicIn unit InterfaceBase

Retrieves a handle to one of the predefined graphic objects.

Declaration

pascal
function GetStockObject(Value: Integer): TLCLHandle; virtual

Arguments

Value

The object kind.

Function result

The handle, zero on failure.

Description

These are the predefined (Windows) stock objects:

  • BLACK_BRUSH
  • DKGRAY_BRUSH
  • DC_BRUSH
  • GRAY_BRUSH
  • HOLLOW_BRUSH
  • LTGRAY_BRUSH
  • NULL_BRUSH
  • WHITE_BRUSH
  • BLACK_PEN
  • DC_PEN
  • WHITE_PEN
  • ANSI_FIXED_FONT
  • ANSI_VAR_FONT
  • DEVICE_DEFAULT_FONT
  • DEFAULT_GUI_FONT
  • OEM_FIXED_FONT
  • SYSTEM_FONT
  • SYSTEM_FIXED_FONT
  • DEFAULT_PALETTE

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