mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:59:31 +02:00
IDE: Make ValueCheckBox for Booleans work in Object Inspector. Compile with DEFINE UseOICheckBox.
git-svn-id: trunk@37828 -
This commit is contained in:
parent
3df6dc0d2f
commit
274b27b1e8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user