IDEIntf: tobjectinspector: changing filter after creation from Michael VC

git-svn-id: trunk@15611 -
This commit is contained in:
mattias 2008-06-29 21:26:24 +00:00
parent 97faf853fc
commit fb5d6501e3

View File

@ -343,6 +343,7 @@ type
procedure SetColumn(const AValue: TOICustomPropertyGridColumn);
procedure SetCurrentEditValue(const NewValue: string);
procedure SetFavourites(const AValue: TOIFavouriteProperties);
procedure SetFilter(const AValue: TTypeKinds);
procedure SetItemIndex(NewIndex:integer);
function GetNameRowHeight: Integer; // temp solution untill TFont.height returns its actual value
@ -493,6 +494,7 @@ type
property ValueFont: TFont read FValueFont write FValueFont;
property Favourites: TOIFavouriteProperties read FFavourites
write SetFavourites;
Property Filter : TTypeKinds Read FFilter Write SetFilter;
end;
@ -2570,6 +2572,15 @@ begin
BuildPropertyList;
end;
procedure TOICustomPropertyGrid.SetFilter(const AValue: TTypeKinds);
begin
If (AValue<>FFilter) then
begin
FFilter:=AValue;
BuildPropertyList;
end;
end;
procedure TOICustomPropertyGrid.Clear;
begin
ClearRows;