DesignIntf.ISelectionEditor.RequiresUnits

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RequiresUnits(Proc: TGetStrProc);

C++

virtual void __fastcall RequiresUnits(System::Classes::TGetStrProc Proc) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
DesignIntf.pas
DesignIntf.hpp
DesignIntf ISelectionEditor

Description

Ensures that all the required units are included in the program.

RequiresUnits calls the procedure indicated by the Proc parameter with all the units needed when using this class. The form designer automatically ensures that the units in which the class and all its ancestors were declared are included in the uses clause of the program that uses the component.

Note: It is possible that an event will use a type with one of its parameters that is neither in the class unit nor in any of its ancestor's units. In this case a selection editor that implements RequiresUnits should be registered and used for each unit that declares the types needed by the event.

See Also