mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:09:32 +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;
|
OnExit:=@ValueCheckBoxExit;
|
||||||
OnKeyDown:=@ValueCheckBoxKeyDown;
|
OnKeyDown:=@ValueCheckBoxKeyDown;
|
||||||
OnKeyUp:=@ValueCheckBoxKeyUp;
|
OnKeyUp:=@ValueCheckBoxKeyUp;
|
||||||
|
OnClick:=@ValueCheckBoxClick;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
ValueButton:=TSpeedButton.Create(Self);
|
ValueButton:=TSpeedButton.Create(Self);
|
||||||
@ -1465,6 +1466,7 @@ var
|
|||||||
CurRow: TOIPropertyGridRow;
|
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); //'True','False';
|
||||||
CurRow:=Rows[FItemIndex];
|
CurRow:=Rows[FItemIndex];
|
||||||
if paAutoUpdate in CurRow.Editor.GetAttributes then
|
if paAutoUpdate in CurRow.Editor.GetAttributes then
|
||||||
SetRowValue;
|
SetRowValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user