ucheckbox (CheckBox)

The ucheckbox widget enables the user to set a Boolean value in a form component. Uniface provides a logical widget called CheckBox, which is mapped to ucheckbox.

CheckBox widget, selected

For more information, see Specifying a Widget for a Field or Entity.

Widget Overview
Logical widget name: CheckBox
Maps to physical widget:

ucheckbox

Default definition: CheckBox=ucheckbox(font=label;fittotext=true)
Use for: Boolean fields
Supported triggers: See Triggers
Supported properties: See Widget Properties
Supported in egrid(Grid) widget? Yes. Some properties may not be applicable.

For more information, see egrid (Grid) and Widgets and Properties Supported in Grid Widget.

Supports MSAA? : Yes, for testing purposes only. For more information, see Accessibility.

Description

The Tri-state property determines whether the allowed check box values can be boolean (two states allowed), or tri-state (three states allowed). The possible values of a check box are True or False, and a third state that you can attribute any meaning to (for example, default or undetermined). You can also attribute any meaning you want to the values on and off.

You can test for the following values of a check box.

Valid Values for Check Boxes

Value

Description

"0"

Cleared, meaning FALSE.

"1"

Selected, meaning TRUE.

""

Tri-state only: NULL, meaning undetermined.

Triggers

Widget Properties

Check Box Widget Properties

Property

Technical Name

Dynamic?

3-D Effect (3d)

3D

No

Attach to Window Border (attach)

Attach

Yes

Background Color (BackColor)

BackColor

Yes

Foreground Color (ForeColor)

ForeColor

Yes

FocusIndicator

FocusIndicator

Yes

Fit to Text

FitToText

No

Inherit Colors (InheritColors)

InheritColors

Yes

Label Font (LabelFont)

Font

Yes

Mouse Pointer (Cursor)

Cursor

Yes

Popup Rectangle (PopupRect)

PopupRect

Yes

Tool Tip Text (ToolTipText)

ToolTipText

Yes

Transparency

Transparency

Yes

Tri-State

TriState

Yes

No for CHUI

Use Detail Trigger

V52

Yes

No for CHUI

Alignment (CHUI only)

Alignment

No

Decoration (CHUI only)

Decoration

No

Related Topics