maybe this would be useful http://forum.lazarus.freepascal.org/...25.0;topicseen