Classes | GUI > Views

CheckBox

A view that toggles between two states.
Location: NOT INSTALLED!

Description

A view that toggles between two states when clicked, displaying or hiding a check mark accordingly.

Class Methods

Inherited class methods

Instance Methods

Data

.value

Stating which of the two states the view is currently in, false meaning unchecked and true meaning checked. Default to false.

Arguments:

A Boolean.

.valueAction

Sets -value and triggers -action.

Arguments:

A Boolean.

.string

The text displayed next to the check mark.

Actions

.action

The action object evaluated whenever the user toggles the state.

Drag and drop

.defaultGetDrag

Returns:

The -value.

.defaultCanReceiveDrag

Returns:

True if the current drag data is a Boolean.

.defaultReceiveDrag

Sets -valueAction to the current drag data.

Inherited instance methods