IconIDToRgn
To create a region from a icon mask use the IconIDToRgn function
FUNCTION IconIDToRgn(rgn as RgnHandle,iconRect as Rect, alignment as Integer, resID as Integer) as Integer
rgn RgnHandle - Recives region created
from icon mask. The RngHandle must be
allocated before calling the IconIDToRgn.
iconRect Rectangle indicating the icon position.
alignment Alignment for the icon:
atNone = 0
atVerticalCenter = 1
atTop = 2
atBottom = 3
atHorizontalCenter = 4
atLeft = 8
atRight = 12
resID The resource Id of the family of "icxx"
returns Errorcode, 0 = noError.
Supported platforms:
* MacOS PPC
* MacOS Carbon
* MacOS Mach-O
Unsupported platforms:
* Windows x86