Skip to content

TResourceStream

[Properties (by Name)][Methods (by Name)][Events (by Name)]

Stream that reads its data from a resource object.

Declaration

Source position: classesh.inc line 1298

Type
  TResourceStream = class (TCustomMemoryStream)
  private
    Res : TFPResourceHandle;
    Handle : TFPResourceHGLOBAL;
    procedure Initialize(Instance: TFPResourceHMODULE; Name: PChar; 
                        ResType: PChar; NameIsID: Boolean);
  public
    constructor Create(Instance: TFPResourceHMODULE; const ResName: string; 
                      ResType: PChar);
    constructor CreateFromID(Instance: TFPResourceHMODULE; ResID: Integer; 
                            ResType: PChar);
    destructor Destroy;  Override;
  end
  ;

Members

Member Type Visibility Description
Create Method public Creates a new instance of a resource stream.
CreateFromID Method public Creates a new instance of a resource stream with a resource
Destroy Method public Destroys the instance of the resource stream.
Handle Field private
Initialize Method private Initializes the resource stream.
Res Field private

Inheritance

Class Description
TResourceStream Stream that reads its data from a resource object.

See also

Name Description
TFPResourceHandle Handle to resource
TFPResourceHGLOBAL TFPResourceHGLOBAL