Hi all!
I've just found that this function is not working anymore on recent macOS's.
Verified on Mac OS X 10.11.6 and macOS 10.12+, the resulting form has a black color instead of transparency.
@skalogryz, can you see if this can be fixed?
Lazarus 1.6.4;
FPC 3.0.2.
EDIT: Seems to work fine again on Carbon