IDE: Make ValueCheckBox for Booleans work in Object Inspector. Compile with DEFINE UseOICheckBox.

git-svn-id: trunk@37828 -
This commit is contained in:
juha 2012-06-30 18:28:33 +00:00
parent 3df6dc0d2f
commit 274b27b1e8

View File

@ -944,6 +944,7 @@ begin
OnExit:=@ValueCheckBoxExit;
OnKeyDown:=@ValueCheckBoxKeyDown;
OnKeyUp:=@ValueCheckBoxKeyUp;
OnClick:=@ValueCheckBoxClick;
end;
ValueButton:=TSpeedButton.Create(Self);
@ -1465,6 +1466,7 @@ var
CurRow: TOIPropertyGridRow;
begin
if (pgsUpdatingEditControl in FStates) or not IsCurrentEditorAvailable then exit;
ValueCheckBox.Caption:=BoolToStr(ValueCheckBox.Checked, True); //'True','False';
CurRow:=Rows[FItemIndex];
if paAutoUpdate in CurRow.Editor.GetAttributes then
SetRowValue;