Sign in Join
FPDoc Onlineexperiment

TCustomIcon.LazarusResourceTypeValid function

Member of TCustomIconpublicIn unit Graphics

Determines if the specified resource type is valid for the image format.

Declaration

pascal
function LazarusResourceTypeValid(const ResourceType: string): Boolean
 ; override

Arguments

ResourceType

Resource type identifier examined in the method.

Function result

True when the resource type identifier is valid for the image format.

Description

LazarusResourceTypeValid is an overridden Boolean function used to determine if the specified resource type is valid for the image format.

The return value is True when ResourceType contains 'ICO' or 'ICON'. The inherited method is called to get the return value when ResourceType contains any other resource type name. Case is not significant when comparing the value in ResourceType; it is converted to uppercase in the method.

See also

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