Ultra Light Client Guide and Reference


CheckBox general advice

Code example

To track the state of UlcCheckbox, use the addStateChangeCallbackFor:selector:clientData: callback API.

The corresponding widget for use in menus is UlcCheckBoxMenuItem. Example code follows for both components:

UlcCheckBox new setSelected: true.
UlcCheckBoxMenuItem new label: 'Show Table'

Tooltips, enablers, and mnemonics are features supported by all button-like classes.

Enablers

A feature required for buttons and menu items is to change their enable or disable state depending on the state of another widget. In ULC, this is done with enablers. An enabler informs its registered widgets that it has changed its state, and effects the change of the enable or disable state on those widgets. The following classes can serve as enablers:

The following classes can serve as concatenated enablers:


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]