Unit 'Graphics' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

CreateBitmapFromResourceName

Creates a TCustomBitmap instance with the content for the named Typhon resource.

Declaration

Source position: graphics.pp line 2034

function CreateBitmapFromResourceName(

  Instance: TLCLHandle;

  const ResName: string

):TCustomBitmap;

Arguments

Instance

  

Handle for the Typhon resource with the content for the bitmap.

ResName

  

Name for the RT_BITMAP resource loaded in the routine.

Function result

Bitmap instance created and loaded in the routine.

Description

Used in the implementation of components, and the LCL, to get a bitmap image stored in a Typhon resource. Typically used to load button glyphs and icons displayed on the component palette in the Typhon IDE.



CT Web help

CodeTyphon Studio