"How to make only image shape clickable on a button in HISE?"
-
Hi everyone ;)
I'm trying to make each button clickable but only in the coloured shape, because the square shape of hise buttons causes clickable areas to overlap. Any Idea? -
@marcrex Use a panel instead of a button, or use multiple buttons with laf to style them.
-
@d-healey yeah that sounds like an evening with a glass of red wine, the mouse callback of a ScriptPanel and some good old trigonometry...
-
@Christoph-Hart I was shy to bring trigo on the table, thinking, "Well, Chris'll come with a shiny CSS trick of his own" :beaming_face_with_smiling_eyes:
Pythagoras's not dead ! :face_with_tongue:
-
@ustk nah, that's a circle and you need to calculate angles this time for real :)
-
All right let's play with trigonometry then :grinning_face_with_sweat:
Thank you guys -
-
@marcrex definitely do-able