Table of Contents

TAdvCustomComponentInspector Class

Abstract base component inspector that displays and edits the published properties and events of one or more components.

Remarks

TAdvCustomComponentInspector extends TAdvCustomInspector to show and edit the published properties or event handlers of a TComponent instance. Set Instance to bind the inspector to a component, then toggle between properties and event handlers via the Mode property. When MultiSelect is True, multiple components can be inspected simultaneously and only properties common to all selected instances are displayed. Custom property editors, filtering, sorting, translation via a dictionary file, and event-list population are all available through the corresponding event callbacks.

Syntax

Unit: ComponentInspector

TAdvCustomComponentInspector = class(TAdvCustomInspector);

Constructors

Name Description
Create Creates a TAdvCustomComponentInspector and initializes internal property list and notification structures.

Methods

Name Description
AddInstance Adds AInstance to the set of inspected components.
AddNotification Registers TheControl to receive CM_OIUPDATED messages when the inspector updates.
ClearExpanded Collapses all currently expanded sub-property groups.
CreateWnd Initializes the inspector item count when the window handle is created.
CustomizeInspector Fires the OnCustomizeInspector event, allowing callers to customize Inspector before it is shown.
DeleteInstance Removes AInstance from the set of inspected components.
DeleteNotification Unregisters TheControl so it no longer receives update notifications from the inspector.
FillEventList Populates Strings with the names of available event handlers for the given event type.
FullExpand Expands all collapsible property groups in the current list.
IndexOfInstance Returns the zero-based index of AInstance in the inspected-instances list, or -1 if not found.
IndexOfProperty Returns the row index of property P in the current list, or -1 if not found.
IndexOfPropertyName Returns the row index of the property whose full name matches AFullname (​case-​insensitive)​, or -1 if not found.
RefreshList Reloads property values for all inspected instances and redraws the inspector without changing the selection.
SelectProperty Selects the property row whose full name matches AFullName.
Update Refreshes the inspector display and notifies all registered notification controls.

Properties

Name Description
InstanceCount Returns the number of component instances currently being inspected.
Instances[Index] Returns the component at the specified index in the inspected-instances list.
Properties[Index] Returns the TProperty object at the specified row index.
PropertyCount Returns the number of visible property rows in the current list.