if your a newbie you should realy try the new comers forum in answer to your question
you have a box
box 10,10,50,50
this is the box i which you could also draw it with lines but you will need to replace the values with your own)
then you tell the program that if the mouse is within a certain area and you have clicked the button then do something
if mouseclick() = 1
if mousex() < 50 and mousex() > 10
if mousey() < 50 and mousey() > 10
" your comands go here "
endif
endif
endif
We're all just a figment of somebodys imagination