The mouse unit should not be used with LCL applications, it belongs to the FreeVision framework.