Hi,
new problem with the CheckBox control.
My SQL Server Table has a datacolumn which stores a boolean; values: True/False (-1/0).
The checkbox control is bound to this data field. I thought the checkbox will be checked when the value of the datafield is 'true'. But it only get the 'SelectionState' = 'checked', when the value of the data field is 1.
CheckBox - True/False
CheckBox - True/False
ButtonControls 1.4 Unicode
EditControls 1.4 Unicode
DateTimeControls 1.1 Unicode
Statusbar 1.2 Unicode
Re: CheckBox - True/False
Currently, negative values raise an error. Although it seems dirty, I think I'll simply allow a value of -1 and handle it like 1 (Checked).
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!
Re: CheckBox - True/False
Try the attached revision. It handles -1 like 1 (ssChecked).
- Attachments
-
- BtnCtls142109-Release.zip
- Pre-release of ButtonControls 1.4.2
- (226.73 KiB) Downloaded 604 times
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!
Re: CheckBox - True/False
it works.
Thank you!
Thank you!
ButtonControls 1.4 Unicode
EditControls 1.4 Unicode
DateTimeControls 1.1 Unicode
Statusbar 1.2 Unicode