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,13 +1576,9 @@ begin
end; end;
procedure TOICustomPropertyGrid.ValueCheckBoxClick(Sender: TObject); procedure TOICustomPropertyGrid.ValueCheckBoxClick(Sender: TObject);
var
CurRow: TOIPropertyGridRow;
begin begin
if (pgsUpdatingEditControl in FStates) or not IsCurrentEditorAvailable then exit; if (pgsUpdatingEditControl in FStates) or not IsCurrentEditorAvailable then exit;
ValueCheckBox.Caption:=BoolToStr(ValueCheckBox.Checked, '(True)', '(False)'); ValueCheckBox.Caption:=BoolToStr(ValueCheckBox.Checked, '(True)', '(False)');
CurRow:=Rows[FItemIndex];
if paAutoUpdate in CurRow.Editor.GetAttributes then
SetRowValue(true); SetRowValue(true);
end; end;