OI: Update Boolean value from a Checkbox also when the control is changed but property remains the same.

git-svn-id: trunk@47401 -
This commit is contained in:
juha 2015-01-16 09:35:21 +00:00
parent 8e48cc03e3
commit 1a64d63b36

View File

@ -1576,14 +1576,10 @@ begin
end;
procedure TOICustomPropertyGrid.ValueCheckBoxClick(Sender: TObject);
var
CurRow: TOIPropertyGridRow;
begin
if (pgsUpdatingEditControl in FStates) or not IsCurrentEditorAvailable then exit;
ValueCheckBox.Caption:=BoolToStr(ValueCheckBox.Checked, '(True)', '(False)');
CurRow:=Rows[FItemIndex];
if paAutoUpdate in CurRow.Editor.GetAttributes then
SetRowValue(true);
SetRowValue(true);
end;
procedure TOICustomPropertyGrid.ValueComboBoxExit(Sender: TObject);