How can I ignore onclicked?

Native buttons will consume input hungrily - avoid using them for evoking un-buttonlike behaviours. Instead, make a new user widget that represent a “button” - a simple border will do. Override the states you need - OnMouseEnter / Leave.

You can also control input propagation / bubbling by passing Handled / Unhandled.


As a bonus, you will now be able to customize all buttons easily, rather than hunt down 12 buttons in 6 submenus and adjust each every time you need something updated. At which point inheritance becomes possible…

2 Likes