This code looks *very* windows specific. To detect mouse clicks there is already a cross-platform OnClick event for TForm. There are also OnMouseDown, OnMouseMove, OnMouseUp, etc, which may be better then OnClick to implement drag&drop
I think there are also some drag & drop specific events, but I never got time to study them. -- Felipe Monteiro de Carvalho _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives