mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 15:19:35 +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,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);
|
||||
|
Loading…
Reference in New Issue
Block a user