DesignEditors.TDefaultEditor.Edit

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Edit; override;

C++

virtual void __fastcall Edit();

Properties

Type Visibility Source Unit Parent
procedure
function
public
DesignEditors.pas
DesignEditors.hpp
DesignEditors TDefaultEditor

Description

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

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.

See Also