CheckBox Class |
|
Namespace: VO
The CheckBox type exposes the following members.
| Name | Description | |
|---|---|---|
| Checked |
A logical value representing the current state of a check box. It is TRUE if the box is checked (or for 3-state check boxes, if it is in the third UNDETERMINED state), otherwise it is FALSE. The CheckBox:Checked assign also changes CheckBox:Value and CheckBox:TextValue. Also, if the CheckBox:Value is changed, CheckBox:ValueChanged is set to TRUE.
| |
| TextValue |
CheckBox:TextValue is initialized to FALSE on data windows, since the control contains no text.
(Overrides TextValue.) | |
| Value |
CheckBox:Value contains TRUE if the check box is in the checked (ON) state or for 3-state check boxes, in the third UNDETERMINED state. It contains FALSE if it is in the unchecked state (OFF).
(Overrides Value.) |
| Name | Description | |
|---|---|---|
| Destroy |
Provide a method to de-instantiate a CheckBox object.
(Overrides Destroy.) |
1METHOD ButtonClick(oControlEvent) CLASS MyWind 2SUPER:ButtonClick(oControlEvent) 3// Do something else
1CLASS MyDialog INHERIT DialogWindow 2HIDDEN oCBNew AS OBJECT 3METHOD Init(oWindow,nResourceID) CLASS MyDialog 4SUPER:Init(oWindow,nResourceID) 5oCBNew := CheckBox{SELF,IDB_CHECKBOX} 6oCBNew:Checked := TRUE 7SELF:Show()
1RESOURCE IDD_ABOUT DIALOG 20,20,160,120 2STYLE WS_POPUP | WS_DLGFRAME 3BEGIN 4CHECKBOX "&Color" IDB_COLOR,10,20,40,12 5CHECKBOX "&Filled" IDB_FILLED,10,35,40,12 6CONTROL "&Auto",IDB_AUTO,"button", BS_AUTOCHECKBOX,10,65,40,12 7DEFPUSHBUTTON "OK" IDB_OK,64,80,32,14, WS_GROUP 8END