Awnsers to Question in number 3
The pait method works by designating points on the x and y for it to draw a string around.
The "If" state ment works for the butten by if they are active on the figure then run the code for the the butten.
The x,y varibles tell the draw string where and how high to draw a object.
They relate by telling it the code that designate what the mouse should do and to follow it around and do thing when the mouse designates it.