Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: FxObj
Wraps JavaFX CheckMenuItem, a menu item with a checkmark toggle that tracks a selected/unselected state. When the user clicks the item, the checkmark toggles and the state is retained until changed again. Use setSelected() to set the initial state programmatically and getSelected() to read it. An onClick() callback fires each time the item is clicked.
CheckMenuItem (string Text = "")
Creates a new CheckMenuItem with the specified text.
Text is a string with the menu item label.setSelected (bool Selected)
Sets the selected state.
Selected is a bool with true to check.this object for chaininggetSelected ()
Gets the selected state.
A bool with true if checked.onClick (callback OnClick)
Sets a callback for when the item is clicked.
OnClick is a callback to call on click.this object for chaining
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.