IDE: Don't allow editing Boolean ComboBoxes in Object-Inspector. Issue #23018

git-svn-id: trunk@38913 -
This commit is contained in:
juha 2012-09-29 21:37:26 +00:00
parent e08a18840b
commit 44ef110df0

View File

@ -446,6 +446,7 @@ type
TBoolPropertyEditor = class(TEnumPropertyEditor)
public
function OrdValueToVisualValue(OrdValue: longint): string; override;
function GetAttributes: TPropertyAttributes; override;
procedure GetValues(Proc: TGetStrProc); override;
procedure SetValue(const NewValue: ansistring); override;
{$IFDEF UseOICheckBox}
@ -2274,7 +2275,7 @@ begin
Result:=True;
end;
function TPropertyEditor.GetAttributes:TPropertyAttributes;
function TPropertyEditor.GetAttributes: TPropertyAttributes;
begin
Result:=[paMultiSelect,paRevertable];
end;
@ -3084,6 +3085,11 @@ begin
Result := 'True';
end;
function TBoolPropertyEditor.GetAttributes: TPropertyAttributes;
begin
Result:= Inherited GetAttributes + [paPickList];
end;
procedure TBoolPropertyEditor.GetValues(Proc: TGetStrProc);
begin
Proc('False');