[EMAIL PROTECTED] wrote:
PropertySorter = Class(TypeConverter)
Public
constructor Create;
Function GetPropertiesSupported(context: ITypeDescriptorContext): Boolean; override;
Function GetProperties(context: ITypeDescriptorContext; value: Tobject; attributes: Attribute): PropertyDescriptorCollection; override;
End;


Which should be OK if you read the manual, online material, even samples done in C#, but I still get the compiler error under Delphi 2005 Net:

[Error] OrderedPropertyGrid.pas(33): E2137 Method 'GetProperties' not found in base class

In fact there are three GetProperties methods in the base class, but none of them matches the signature of the method you show above, and so the compiler is correct. The third parameter should be an array of Attribute, not just one.


--
Rob

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to