mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 12:39:23 +02:00
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:
parent
8e48cc03e3
commit
1a64d63b36
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user