Juha Manninen schreef: > Hi, > > GetCursorPos is defined in winapih.inc. > Does it mean it is Windows only? Is there a cross platform alternative? No, it is part of the LCLintf unit: http://lazarus-ccr.sourceforge.net/docs/lcl/lclintf/index.html Porting Delphi code without having the windows unit is hard, so we made it easier. Vincent