Donovan J. Edye asked:

> However when I try and expand AttCountry in a TADSVenueEntity
> component I get an "Unable to expand...." error. Can someone
> see what I am doing wrong here?

Interesting problem, and I'm not sure what the error message is being caused
by, but I do have some ideas where you can start looking.

The code that code the class property expansion is in DsgnIntf line 2223
(assuming Delphi 5) and is the routine TClassProperty.GetProperties. What I
would suggest doing is registering you own property editor for the
AttCountry property and adding lots of debugging code in there to see where
things are going wrong.

As TClassProperty.GetProperties calls down to GetComponentProperties and
this is a faitly complicated bit cof code you may have to pull lots of stuff
out of DsgnIntf to get an idea why the error is occuring.

Unfortunately this is one area where you can't use Delphi to debug Delphi,
because there are no symbols available for the VCL design time packages that
would allow source level debugging. And doing all this at the assembler
level is rather tedious...

Cheers, Max.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to