problem solved

problem solved with the help of taazz from the Lazarus forum