DVX_GUI/widgets/checkbox/checkbox.bhs

40 lines
813 B
Text

.topic ctrl.checkbox
.title CheckBox
.toc 1 CheckBox
.index CheckBox
.index Value
.h1 CheckBox
VB Equivalent: CheckBox -- DVX Widget: checkbox
A toggle control with a label. Checked state is exposed as a Boolean.
.h2 Type-Specific Properties
.table
Property Type Description
-------- ------- -------------------------------------------
Caption String The text displayed next to the checkbox.
Value Boolean True if checked, False if unchecked.
.endtable
Default Event: Click
.h2 Example
.code
Begin CheckBox Check1
Caption = "Enable feature"
End
Sub Check1_Click ()
If Check1.Value Then
Label1.Caption = "Feature ON"
Else
Label1.Caption = "Feature OFF"
End If
End Sub
.endcode
.link ctrl.common.props Common Properties, Events, and Methods