Using the Drawing API to create buttons?

Is is posible to make a linea ( using the Drawing API ) and convert it to a button , so I can catch clicks on it ??

thanks
:wink: