RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBasePropertyEditor.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); virtual; abstract;
C++
virtual __fastcall SetPropEntry(int Index, TPersistent * AInstance, PPropInfo APropInfo) = 0;

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 APropCount parameter that is passed to the constructor. 

AInstance is a reference to the object being edited. 

APropInfo is a pointer to the property information record for the property on AInstance. This can be used to access the methods that get or set the property value. 

In TBasePropertyEditor, SetPropEntry is abstract (pure virtual). Descendant classes must override this method to provide an implementation. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!