if (pointer_state<>0) and (pointer_pressed_x>0) and (pointer_pressed_x<100) and (pointer_pressed_y>0) and (pointer_pressed_y<100) then halt;