Load a list of component properties.
Source position: rttiutils.pp line 124
public procedure TPropsStorage.LoadObjectsProps( |
AComponent: TComponent; |
StoredList: TStrings |
); |
AComponent |
|
Owner component of the components. |
StoredList |
|
List of components and their properties to load. |
LoadObjectsProps loads a list of component properties, relative to AComponent: the names of the component properties to load are specified as follows:
ComponentName1.PropertyName ComponentName2.Subcomponent1.PropertyName
The component instances will be located relative to AComponent, and must therefore be names of components owned by AComponent, followed by a valid property of these components. If the componentname is missing, the property name will be assumed to be a property of AComponent itself.
The Objects property of the stringlist should be filled with the instances of the components the property references refer to: they can be filled with the UpdateStoredList call.
For example, to load the checked state of a checkbox named 'CBCheckMe' and the caption of a button named 'BPressMe', both owned by a form, the following strings should be passed:
CBCheckMe.Checked BPressMe.Caption
and the ACompontent should be the form component that owns the button and checkbox.
Note that this call removes the value of the AObject property.
If an invalid component is specified, an exception will be raised.
|
Update a stringlist with object references. |
|
|
Store a list of component properties. |
|
|
Load a list of properties. |
|
|
Load a property value. |