Sign in Join
FPDoc Onlineexperiment

TGroupResource.ItemData property

Member of TGroupResourcepublicIn unit groupresource

Resource data as an ICO/CUR stream

Declaration

pascal
property ItemData: TStream read GetItemData;

Description

This property gives access to resource data in a (ICO or CUR) file-like stream, unlike RawData.

The exact format of the stream (ico or cur) is determined by the descendant class of TGroupResource that is used.

ItemData does not create a copy of RawData so memory usage is generally kept limited.

You can also set a custom stream as the underlying stream for ItemData via SetCustomItemDataStream, much like SetCustomRawDataStream does for RawData. This is useful when you want a TGroupIconResource or TGroupCursorResource to be created from a ico or cur file for which you have a stream.

If you need to access RawData after you modified ItemData, be sure to call UpdateRawData first. This isn't needed however when resource is written to a stream, since TResources takes care of it.

See also

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