TI Grid: Make a CheckBox boolean editor work somehow. Was stuck on 'True'. Must be fixed properly later.

git-svn-id: trunk@47983 -
This commit is contained in:
juha 2015-02-24 22:57:04 +00:00
parent f130692a93
commit 01cc0f741c

View File

@ -969,6 +969,7 @@ begin
Enabled:=false;
AutoSize:=true; // SetBounds does not work for CheckBox, AutoSize does.
Parent:=Self;
Top := -30;
OnMouseDown := @ValueControlMouseDown;
OnMouseMove := @ValueControlMouseMove;
OnExit:=@ValueCheckBoxExit;
@ -1642,7 +1643,8 @@ begin
ValueCheckBox.State:=cbGrayed
else if NewValue='(True)' then
ValueCheckBox.State:=cbChecked
else
// Note: this condition can be removed when the right propedit is used always.
else if NewValue='(False)' then
ValueCheckBox.State:=cbUnchecked;
end;