Create button/zone/area

staticseven's icon

Hi all
I'm working on the UI for a patch which is quite graphically intensive. I want to be able to create an area that will act as a button but isn't restricted to the normal shapes available (squares, circles, and anything between).
Is it possible to draw an area that can be selected as a button somehow?
Thanks
Liam.

domkirke's icon

Have tried the duo ubutton/fpic? Fpic will display the picture you want, and the ubutton provides a transparent button which sends all the events you need.

staticseven's icon

Yeah that's what I'm currently on. I was hoping to have the button flash on click, and the flash take the shape of an area of the image. Is it possible to draw an unusually shaped area?

domkirke's icon

The other way is with the "pictctrl" object, where you can use a double-part picture to create a button.

staticseven's icon

I shall investigate.
Thank you!