I am assuming that these objects are square (as with the command button) and that when you mean by "hit", you mean the bottom of the object hits the top of the command button.
In order to do this, you have to check to see if:
bottom coor. of object <= top coor. of cmd button.




Reply With Quote