IconLib REALbasic Plugin

Icon.Icon Constructor

A constructor to get the desktop file icon of a folder item or a icon loaded from a .icns file.

Icon(
   f as FolderItem,
   iconSource as Integer)

Parameters

f
The FolderItem to optain the icon from or load a icns file from.
iconSource
A constant to specify what to load.

0 = Desktop icon from a folder item.
1 = .icns file.

Remarks

Note:
Only MacOS systems support loading from a .icns file.

See Also

Icon Class