Rob,

You got it - Thanks for the help.

By the way do you know how to obtain the PropertySort for the "Context"? If I do a break I can via the "Local Variables" window see a "data" item called "PropertySort" which includes the information if the user want to sort using Categories or strait Alpha. However I an not sure how to get to this PropertySort. I assume it is a part of GridEntry. Even with that information I am not sure how the IDE can get the value. Any idea?

Bjarne \v/
Bjarne's Virtual Office at http://www.go2nts.com/bwtoday.html

Date: Sun, 15 May 2005 22:45:50 -0500
From: Rob Kennedy <[EMAIL PROTECTED]>
Subject: Re: TypeConverte: GetProperties Not fund in base in base
   class
To: Borland's Delphi Discussion List <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8; format=flowed

[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