RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponentProperty.Edit Method

Responds when the user double-clicks the property in the Object Inspector.

Pascal
procedure Edit; override;
C++
virtual __fastcall Edit();

The Object Inspector calls Edit when the ellipsis button (...) is pressed or the property is double-clicked. The Edit method of TPropertyEditor cycles through the possible enumerated values of the property when the GetValues method returns one or more property strings to the callback method. 

Override the Edit method to implement a response to the ellipsis button or double-clicking the property. For example, use the Edit method to bring up a dialog for editing the property in some more meaningful fashion than typing a text value in the Object Inspector. 

 

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