Mark,

GetClassType returns the typeinfo for the class - you can use that to get
the properties information.

Dennis.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mark Derricutt
> Sent: Friday, 22 October 1999 12:02
> To: Multiple recipients of list delphi
> Subject: [DUG]: Property Editors and other properties...
>
>
> In one of my property editors I use the following code to get
> information
> about the settings of another property:
>
>   PropInfo := typinfo.GetPropInfo(Control.ClassInfo, 'UnitType');
>   if PropInfo <> nil then
>     Result := typinfo.GetStrProp(Control, PropInfo)
>   else
>     Result := '';
>
> For another property editor, I want to do something similiar, but
> different.
>
> I have a property called UnitSystem which links to another
> component in
> the project.  I can use typinfo.GetPropInfo to get return the
> information
> about the "UnitSystem" property, but what I really want to do
> is then look
> up the linked component and return the value of one of its properties.
>
> Is it possible?
>
> --
> Mark Derricutt, He that brings forth electronic life.
> Now Playing: Timothy Pure - Blood Of The Berry
>
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to