CheckBox.property DataWindow object property
Description
Settings for a column whose edit style is CheckBox.
Controls
Column controls
Syntax
PowerBuilder dot notation:
1 |
<span>dw_control</span>.Object.<span>columnname</span>.CheckBox.<span>property</span> |
Describe and Modify argument:
1 |
"<span>columnname</span>.CheckBox.<span>property</span> { =<span> value</span> }" |
Parameter |
Description |
---|---|
columnname |
The column whose edit style is CheckBox |
property |
A property for the CheckBox edit style, |
value |
Values for the properties are shown in |
Property for CheckBox |
Value |
---|---|
LeftText |
Whether the CheckBox label is to the Values are:
Painter: Edit tab, Left Text option. |
Off |
A string constant specifying the column Painter: Edit tab, Data Value for Off option. |
On |
A string constant specifying the value Painter: Edit tab, Data Value for On option. |
Other |
A string constant specifying the value Painter: Edit tab, This option is available when ThreeStates |
Scale |
Whether you want to scale the 2D CheckBox. Values are:
Painter: Edit tab,Scale option. |
Text |
A string specifying the CheckBox’s Painter: Edit tab, Text option. |
ThreeD |
Whether the CheckBox should be 3D. Values are:
Painter: Edit tab, 3D Look option. |
ThreeStates |
Whether the CheckBox should have three Values are:
Painter: Edit tab, 3 States option. |
Usage
In the painter
Select the control and set values in the Properties view,
Edit tab, when Style Type option is CheckBox.
Examples
1 |
dw1.Modify("emp_gender.CheckBox.3D=no") |
1 |
IF dw1.Describe("emp_status.CheckBox.LeftText") & |
1 |
= "yes" THEN |
1 |
dw1.Modify("emp_status2.CheckBox.LeftText=yes") |
1 |
END IF |
1 |
dw1.Modify("emp_status.CheckBox.Off='Terminated'") |
1 |
dw1.Modify("emp_status.CheckBox.On='Active'") |
1 |
dw1.Modify("emp_status.CheckBox.Other='Unknown'") |
1 |
dw1.Object.emp_gender.CheckBox.ThreeD = "no" |
1 |
IF dw1.Object.emp_status.CheckBox.LeftText = "yes" THEN |
1 |
dw1.Object.emp_status2.CheckBox.LeftText = "yes" |
1 |
END IF |