Unit 'icon' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

PutDiskObject

Write out a DiskObject to disk.

Declaration

Source position: icon.pas line 232

function PutDiskObject(

  const Name: PChar;

  const Icon: PDiskObject

):SmallInt;

Arguments

Name

  

Name of the object

Icon

  

A pointer to a DiskObject

Description

This routine writes out a DiskObject structure, and its associated information. The file name of the info file will be the name parameter with ".info" postpended to it. If the call fails, False will be returned. The reason for the failure may be obtained via IoErr().

PutDiskObject() (if successful) notifies Workbench when an icon has been created/modified.

Using this routine protects you from any future changes to the way icons are stored within the system.

Note:

It is recommended that if you wish to copy an icon from one place to another than you use GetDiskObject() and PutDiskObject() and do not copy them directly.

See also

IoErr()

  

Return extra information from the system

DeleteDiskObject

  

Delete a Workbench disk object from disk.

FreeDiskObject

  

Free all memory in a Workbench disk object.

GetDiskObject

  

Read in a Workbench disk object from disk.

GetIconTagList

  

Retrieve an icon

PutIconTagList

  

Store an icon


Documentation generated on: 2021-07-30