DesignEditors.TPropertyEditor.Activate

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
DesignEditors.pas
DesignEditors.hpp
Unit: DesignEditors
Parent: TPropertyEditor

Delphi

procedure Activate; virtual;

C++

virtual void __fastcall Activate();

Description

Responds when the property is selected in the Object Inspector.

Do not call the Activate method. It is called automatically when the property is selected. As implemented in TPropertyEditor, Activate does nothing. Override this method to determine attributes of the property dynamically when the property editor is displayed in the Object Inspector.

Before Activate is called, the GetAttributes method does not need to provide accurate information about any attributes other than paSubProperties, paVCL, and paMultiSelect. Any other attributes can be computed in an override of the Activate method and stored so that subsequent calls to GetAttributes can provide accurate information.

See Also