Delphi - Picking property values with GetPropValue ()

1

I am using the GetPropValue() function of Delphi to get values of certain properties of some objects of type TControl . Everything works correctly when I get simple property values such as Value , Opacity , etc, but since I'm using firemonkey there are some extended properties, such as RotationCenter , it has RotationCenter.X and RotationCenter.Y , or even the text properties within TextSettings , in these properties with sub-types I can not get the values.

In this example I get the values correctly:

if IsPublishedProp(Componente_cc, 'Value') then
  editValue.Text := GetPropValue(Componente_cc, 'Value', true);

Where Componente_cc: TControl; is created dynamically, it can also be any type of Firemonkey component (so far so good, everything works).

When I need to use the form below, it does not work.

if IsPublishedProp(Componente_cc, 'RotationCenter.X') then
  editRotationCenterX.Text := GetPropValue(Componente_cc, 'RotationCenter.X', true);

Does anyone know a way to get these properties extended by this function?

    
asked by anonymous 19.08.2017 / 23:00

0 answers