mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 10:29:29 +02:00
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:
parent
f130692a93
commit
01cc0f741c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user