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

Reply via email to