RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDefaultEditor.Edit Method

Responds when the user double-clicks the component in the form designer.

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

The Object Inspector calls Edit when the user double-clicks the component. Edit searches the component for events. If it finds an OnCreate event, it brings up the code editor for the OnCreate event handler. If there is no OnCreate event, it brings up the code editor for the OnChange event handler. If there is no OnChange event, it brings up the code editor for the OnClick event handler. If it finds none of these events, it brings up the code editor for the first event it finds.

Note: Do not override Edit to change the event handler that your component editor displays in the code editor. Instead, override the protected EditProperty method.
 

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