Bogdanp / racket-gui-easy

Declarative GUIs in Racket.
https://docs.racket-lang.org/gui-easy/index.html
134 stars 18 forks source link

Add checkable-menu-item #52

Closed cloudrac3r closed 7 months ago

cloudrac3r commented 7 months ago

Fixes #51.

That was easier than I expected. (Thanks for the nice code!) I mostly copied menu-item and added the relevant stuff.

I originally had the #:checked? contract as maybe-obs/c boolean? but I changed it to maybe-obs/c any/c so it was more like the #:enabled? parameter and to match the gui:checkable-menu-item% documentation.

Bogdanp commented 7 months ago

Looks great, thanks!

cloudrac3r commented 7 months ago

I can happily report that the new gui-easy update works great in my application using checkable-menu-item on both Windows and Linux.