Menu with checks/checkbox

Started by DJuego, 30 January 2023, 13:31:45


First of all, thank you very much for this very powerful contribution, texus!!

Almost anyclassic widget I could possibly need I can find. But sometimes the need arises for some very particular widget that solves a specific problem almost perfectly.

This is the case of menus with checks.


PS: In my case I would like to use it to control the visibility of groups of sprites (9 groups of five sprites each).  :)


It's a feature that I also want in the future, but it isn't supported currently.

You might be able to hack it together yourself by altering the text:
addMenuItem(U"\u2610 Unchecked")
addMenuItem(U"\u2611 Checked")
addMenuItem(U"    Normal")

And then use changeMenuItem later to alter the first part when checking/unchecking.


Indeed!! Thank you very much (again) for the trick!
I've tried it and it works like a charm! And it fulfills my purposes. And although more convoluted, it fulfills my purposes perfectly.