PXL is cool, a while ago, I have "commited" component for this library : Perhaps code could help, I have not yet finished to porting it to FPC. If someone is interested.
https://github.com/VincentGsell/PXLComponents