Whats the best way to make something have one reactions when a region is clicked. Much like when a button is clicked (you can click anywhere on the button and it does the same thing) Doing a button is sort of easier since, as far as I understand, a button is a window in itself.
Is the only way to easily make clickable objects to create a window for them?
If not how can I do this? It would be sufficient for now to know how to do it for squares or rectangels, but I would like to know how to do this for irregular shaped objects as well.