Hello, I would like to create a nice demo panel with buttons acting like a bang and all the guts of the patch hidden out of sight. I can load nice images using [image] but these do not work for sending messages or bangs. On the other side [bang] has no customization option beside color and size. What can I do?
I just need 4 big buttons... Any suggestions?
-
Demo panel with image buttons?
-
Maybe graph on parent is what you want: http://write.flossmanuals.net/pure-data/graph-on-parent/
-
Thanks Jona. Actually I used this a lot in the past, but I'm still stuck with the usual GUI elements.
I guess I'll have to code a custom external for a button with image? -
@leonardo you can hide a bang with a canvas, perhaps you can hide it with [image] too?
-
Thank you, the tip worked!
For future reference:- create the [image] that will be the graphics for your button
- create a big bang on the canvas, as large as the button
- overlap the two, and send the bang to back (don't worry: even if not visibile it will react to mouse clicks)
- use graph on parent and ensure that the canvas is larger than the button, otherwise it won't print
- now you can use the abstraction
Caveat: if the button must be rectangular, you can cover it with several bangs in order to have all its area covered (and connect all bangs to the action you need to perform)