RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPropertyEditor.SetPropEntry Method

Informs the property editor of a particular object whose property is to be edited.

Pascal
procedure SetPropEntry(Index: Integer; AInstance: TPersistent; APropInfo: PPropInfo); override;
C++
virtual __fastcall SetPropEntry(int Index, TPersistent * AInstance, PPropInfo APropInfo);

The Object Inspector calls SetPropEntry for each object that has a property that the property editor is editing. This allows the property editor to store information about the objects being edited so that it can get and set property values. 

Index is the index of the object being edited. This value can range from 0 to one less than the value of the PropCount property. 

AInstance is a reference to the object being edited. This is later used to supply the value that the GetComponent method returns. 

APropInfo is a pointer to the property information record for the property on AInstance. This is later used to supply the value that the GetPropInfo method returns. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!